From 4beebeb6b3ff912c1dd893dac1deb348926fda3d Mon Sep 17 00:00:00 2001 From: Michael Raskin <7c6f434c@mail.ru> Date: Thu, 13 Nov 2014 11:11:16 +0300 Subject: [PATCH] Make LD_LIBRARY_PATH available during build like during later usage --- pkgs/development/lisp-modules/clwrapper/cl-wrapper.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/development/lisp-modules/clwrapper/cl-wrapper.sh b/pkgs/development/lisp-modules/clwrapper/cl-wrapper.sh index 91b8a0c2bb0f..6452bd5d95ae 100755 --- a/pkgs/development/lisp-modules/clwrapper/cl-wrapper.sh +++ b/pkgs/development/lisp-modules/clwrapper/cl-wrapper.sh @@ -12,6 +12,9 @@ shift export NIX_LISP NIX_LISP_LOAD_FILE NIX_LISP_EXEC_CODE NIX_LISP_COMMAND NIX_LISP_FINAL_PARAMETERS +test -n "$NIX_LISP_LD_LIBRARY_PATH" && + export LD_LIBRARY_PATH="$LD_LIBRARY_PATH${LD_LIBRARY_PATH+:}$NIX_LISP_LD_LIBRARY_PATH" + case "$NIX_LISP" in sbcl) NIX_LISP_LOAD_FILE="--load"