git.iko.soy/typeable/nixpkgs
on master help sign in
ocamlPackages.findlib: automatically populate the CAML_LD_LIBRARY_PATH env. variable

With directories of the form: lib/ocaml/${ocaml.version}/site-lib/stubslibs

commit387d7916637ae4b0e71d54fbcbd58b6c416f3709 authorVincent Laporte <Vincent.Laporte@gmail.com> dateThu 15 Mar 2018, 17:19 (9 years ago) parent2455478
1 file changed+3
pkgs/development/tools/ocaml/findlib/default.nix+3
pkgs/development/tools/ocaml/findlib/default.nix+3
@@ -39,6 +39,9 @@ stdenv.mkDerivation rec {
3939 if test -d "''$1/lib/ocaml/${ocaml.version}/site-lib"; then
4040 export OCAMLPATH="''${OCAMLPATH}''${OCAMLPATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/"
4141 fi
42+ if test -d "''$1/lib/ocaml/${ocaml.version}/site-lib/stubslibs"; then
43+ export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/stubslibs"
44+ fi
4245 export OCAMLFIND_DESTDIR="''$out/lib/ocaml/${ocaml.version}/site-lib/"
4346 if test -n "$createFindlibDestdir"; then
4447 mkdir -p $OCAMLFIND_DESTDIR