lispPackages.clwrapper: NIX_LISP_LD_LIBRARY_PATH might be undefined

This commit is contained in:
John Ericson 2019-11-05 19:45:48 -05:00
parent 67cc85ec67
commit 0b90a7f67f

View File

@ -27,7 +27,7 @@ setLisp () {
collectNixLispLDLP () {
if echo "$1/lib"/lib*.so* | grep . > /dev/null; then
export NIX_LISP_LD_LIBRARY_PATH="$NIX_LISP_LD_LIBRARY_PATH${NIX_LISP_LD_LIBRARY_PATH:+:}$1/lib"
export NIX_LISP_LD_LIBRARY_PATH="${NIX_LISP_LD_LIBRARY_PATH-}${NIX_LISP_LD_LIBRARY_PATH:+:}$1/lib"
fi
}