sbcl: specify $SBCL_HOME only when necessary

This commit is contained in:
Tomas Hlavaty 2018-10-21 01:19:34 +02:00
parent d1a9baaef3
commit 4c4ac578b2

View File

@ -98,13 +98,12 @@ stdenv.mkDerivation rec {
EOF
'';
# Specifying $SBCL_HOME is only truly needed with `purgeNixReferences = true`.
setupHook = writeText "setupHook.sh" ''
setupHook = stdenv.lib.optional purgeNixReferences (writeText "setupHook.sh" ''
addEnvHooks "$targetOffset" _setSbclHome
_setSbclHome() {
export SBCL_HOME='@out@/lib/sbcl/'
}
'';
'');
meta = sbclBootstrap.meta // {
inherit version;