diff options
-rw-r--r-- | pkgs/development/ocaml-modules/eliom/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/ocaml-modules/eliom/setup-hook.sh | 5 |
2 files changed, 7 insertions, 0 deletions
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) |