* Add variable createFindlibDestdir to the setupHook of findlib

* Set createFindlibDestdir to various ocaml packages.

svn path=/nixpkgs/trunk/; revision=25220
This commit is contained in:
Marco Maggesi
2010-12-21 09:37:35 +00:00
parent 2c85e4b96f
commit eb33e01ac7
10 changed files with 23 additions and 2 deletions

View File

@@ -40,6 +40,9 @@ stdenv.mkDerivation {
export OCAMLPATH="''${OCAMLPATH}''${OCAMLPATH:+:}''$1/lib/ocaml/${ocaml_version}/site-lib/"
fi
export OCAMLFIND_DESTDIR="''$out/lib/ocaml/${ocaml_version}/site-lib/"
if test -n $createFindlibDestdir; then
ensureDir $OCAMLFIND_DESTDIR
fi
}
envHooks=(''${envHooks[@]} addOCamlPath)