* 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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user