3
0
Fork 0
forked from mirrors/nixpkgs

sbcl: include sources

This commit is contained in:
Tomas Hlavaty 2018-10-21 01:16:35 +02:00
parent a60e49c318
commit d1a9baaef3

View file

@ -87,6 +87,15 @@ stdenv.mkDerivation rec {
installPhase = ''
INSTALL_ROOT=$out sh install.sh
''
+ stdenv.lib.optionalString (!purgeNixReferences) ''
cp -r src $out/lib/sbcl
cp -r contrib $out/lib/sbcl
cat >$out/lib/sbcl/sbclrc <<EOF
(setf (logical-pathname-translations "SYS")
'(("SYS:SRC;**;*.*.*" #P"$out/lib/sbcl/src/**/*.*")
("SYS:CONTRIB;**;*.*.*" #P"$out/lib/sbcl/contrib/**/*.*")))
EOF
'';
# Specifying $SBCL_HOME is only truly needed with `purgeNixReferences = true`.