about summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules/eliom
diff options
context:
space:
mode:
authorFlorent Becker <florent.becker@ens-lyon.org>2017-03-18 21:15:27 +0100
committerVincent Laporte <Vincent.Laporte@gmail.com>2017-03-20 08:05:21 +0000
commitac87d9ba8bb2a6602bd267c90ddcf25cfe29498f (patch)
treed5ab73a423b11e29162e83ff6d545d5a16ae3da1 /pkgs/development/ocaml-modules/eliom
parentaddffa41b4bd8db87c67fa999d1c1b3f1b168ef4 (diff)
downloadnixlib-ac87d9ba8bb2a6602bd267c90ddcf25cfe29498f.tar
nixlib-ac87d9ba8bb2a6602bd267c90ddcf25cfe29498f.tar.gz
nixlib-ac87d9ba8bb2a6602bd267c90ddcf25cfe29498f.tar.bz2
nixlib-ac87d9ba8bb2a6602bd267c90ddcf25cfe29498f.tar.lz
nixlib-ac87d9ba8bb2a6602bd267c90ddcf25cfe29498f.tar.xz
nixlib-ac87d9ba8bb2a6602bd267c90ddcf25cfe29498f.tar.zst
nixlib-ac87d9ba8bb2a6602bd267c90ddcf25cfe29498f.zip
Add a setup-hook to ocamlPackages.eliom, to look for distillery templates
Diffstat (limited to 'pkgs/development/ocaml-modules/eliom')
-rw-r--r--pkgs/development/ocaml-modules/eliom/default.nix2
-rw-r--r--pkgs/development/ocaml-modules/eliom/setup-hook.sh5
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)