summary refs log tree commit diff
path: root/pkgs/build-support/ocaml
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2019-11-14 13:44:07 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2019-11-14 13:44:07 -0500
commitbca2e8255e4230398edd1f91ce45521d54d6122e (patch)
tree1a4fad3a8ddac150af210751ae44eb0c304bc0ea /pkgs/build-support/ocaml
parenta951f2a27f3f664eb1f33ee3bc2193c19383e59f (diff)
downloadnixpkgs-bca2e8255e4230398edd1f91ce45521d54d6122e.tar
nixpkgs-bca2e8255e4230398edd1f91ce45521d54d6122e.tar.gz
nixpkgs-bca2e8255e4230398edd1f91ce45521d54d6122e.tar.bz2
nixpkgs-bca2e8255e4230398edd1f91ce45521d54d6122e.tar.lz
nixpkgs-bca2e8255e4230398edd1f91ce45521d54d6122e.tar.xz
nixpkgs-bca2e8255e4230398edd1f91ce45521d54d6122e.tar.zst
nixpkgs-bca2e8255e4230398edd1f91ce45521d54d6122e.zip
treewide: CAML_LD_LIBRARY_PATH may be undefined
Diffstat (limited to 'pkgs/build-support/ocaml')
-rw-r--r--pkgs/build-support/ocaml/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/ocaml/default.nix b/pkgs/build-support/ocaml/default.nix
index cc2001c66e2..3957b955a2c 100644
--- a/pkgs/build-support/ocaml/default.nix
+++ b/pkgs/build-support/ocaml/default.nix
@@ -23,7 +23,7 @@ stdenv.mkDerivation (args // {
 
   setupHook = if setupHook == null && hasSharedObjects
   then writeText "setupHook.sh" ''
-    export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/${name}/"
+    export CAML_LD_LIBRARY_PATH="''${CAML_LD_LIBRARY_PATH-}''${CAML_LD_LIBRARY_PATH:+:}''$1/lib/ocaml/${ocaml.version}/site-lib/${name}/"
     ''
   else setupHook;