summary refs log tree commit diff
path: root/pkgs/development/ocaml-modules
diff options
context:
space:
mode:
authorPatrick Mahoney <pat@polycrystal.org>2017-04-22 14:01:05 -0500
committerPatrick Mahoney <pat@polycrystal.org>2017-04-24 00:12:46 -0500
commit1a7586ce24598c03c2ab823e74e5e2413b450cdf (patch)
treef65e14772b96a3718f7f7e781b27d909d46b0649 /pkgs/development/ocaml-modules
parentd27e250627dd2f03e1436410c69b49f6463874ca (diff)
downloadnixlib-1a7586ce24598c03c2ab823e74e5e2413b450cdf.tar
nixlib-1a7586ce24598c03c2ab823e74e5e2413b450cdf.tar.gz
nixlib-1a7586ce24598c03c2ab823e74e5e2413b450cdf.tar.bz2
nixlib-1a7586ce24598c03c2ab823e74e5e2413b450cdf.tar.lz
nixlib-1a7586ce24598c03c2ab823e74e5e2413b450cdf.tar.xz
nixlib-1a7586ce24598c03c2ab823e74e5e2413b450cdf.tar.zst
nixlib-1a7586ce24598c03c2ab823e74e5e2413b450cdf.zip
ocamlPackages.utop: fix environment variables
In the wrapper scripts, both OCAMLPATH and CAML_LD_LIBRARY_PATH where
being created with a trailing literal $OCAMLPATH, rather than the
expanded version. Thus if, for example, ocamlPackages.core was present
in OCAMLPATH prior to running utop, the wrapper script would set the
variable to $utop_dependencies:'$OCAMLPATH', and when using utop to
open Core.Std, the following error was reported:

    findlib: [WARNING] cannot read directory $OCAMLPATH: No such file
    or directory

This patch fixes the quoting issue, and further refactors the build to
use standard wrapProgram helper, and uses an "inner derivation" to
re-use the setupHook machinery of buildOCaml and findlib instead of
manually specifying the OCAMLPATH required for utop along with
transitive dependencies.
Diffstat (limited to 'pkgs/development/ocaml-modules')
0 files changed, 0 insertions, 0 deletions