From ac87d9ba8bb2a6602bd267c90ddcf25cfe29498f Mon Sep 17 00:00:00 2001 From: Florent Becker Date: Sat, 18 Mar 2017 21:15:27 +0100 Subject: [PATCH] Add a setup-hook to ocamlPackages.eliom, to look for distillery templates --- pkgs/development/ocaml-modules/eliom/default.nix | 2 ++ pkgs/development/ocaml-modules/eliom/setup-hook.sh | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 pkgs/development/ocaml-modules/eliom/setup-hook.sh diff --git a/pkgs/development/ocaml-modules/eliom/default.nix b/pkgs/development/ocaml-modules/eliom/default.nix index 57f3477edf6b..d21bd5977ee5 100644 --- a/pkgs/development/ocaml-modules/eliom/default.nix +++ b/pkgs/development/ocaml-modules/eliom/default.nix @@ -30,6 +30,8 @@ stdenv.mkDerivation rec createFindlibDestdir = true; + setupHook = [ ./setup-hook.sh ]; + meta = { homepage = http://ocsigen.org/eliom/; description = "Ocaml Framework for programming Web sites and client/server Web applications"; diff --git a/pkgs/development/ocaml-modules/eliom/setup-hook.sh b/pkgs/development/ocaml-modules/eliom/setup-hook.sh new file mode 100644 index 000000000000..096d8f8bf635 --- /dev/null +++ b/pkgs/development/ocaml-modules/eliom/setup-hook.sh @@ -0,0 +1,5 @@ +addOcsigenDistilleryTemplate() { + addToSearchPathWithCustomDelimiter : ELIOM_DISTILLERY_PATH $1/eliom-distillery-templates +} + +envHooks+=(addOcsigenDistilleryTemplate)