Skip to content

Commit

Permalink
Add a setup-hook to ocamlPackages.eliom, to look for distillery templ…
Browse files Browse the repository at this point in the history
…ates
  • Loading branch information
FlorentBecker authored and vbgl committed Mar 20, 2017
1 parent addffa4 commit ac87d9b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/development/ocaml-modules/eliom/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Expand Down
5 changes: 5 additions & 0 deletions pkgs/development/ocaml-modules/eliom/setup-hook.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
addOcsigenDistilleryTemplate() {
addToSearchPathWithCustomDelimiter : ELIOM_DISTILLERY_PATH $1/eliom-distillery-templates
}

envHooks+=(addOcsigenDistilleryTemplate)

0 comments on commit ac87d9b

Please sign in to comment.