sbcl: specify $SBCL_HOME only when necessary
This commit is contained in:
parent
d1a9baaef3
commit
4c4ac578b2
@ -98,13 +98,12 @@ stdenv.mkDerivation rec {
|
|||||||
EOF
|
EOF
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# Specifying $SBCL_HOME is only truly needed with `purgeNixReferences = true`.
|
setupHook = stdenv.lib.optional purgeNixReferences (writeText "setupHook.sh" ''
|
||||||
setupHook = writeText "setupHook.sh" ''
|
|
||||||
addEnvHooks "$targetOffset" _setSbclHome
|
addEnvHooks "$targetOffset" _setSbclHome
|
||||||
_setSbclHome() {
|
_setSbclHome() {
|
||||||
export SBCL_HOME='@out@/lib/sbcl/'
|
export SBCL_HOME='@out@/lib/sbcl/'
|
||||||
}
|
}
|
||||||
'';
|
'');
|
||||||
|
|
||||||
meta = sbclBootstrap.meta // {
|
meta = sbclBootstrap.meta // {
|
||||||
inherit version;
|
inherit version;
|
||||||
|
Loading…
Reference in New Issue
Block a user