lisp-modules: don't override source registry

Previously, using withPackages for a lisp would totally ignore any
of the default source registry entries, such as
$XDG_DATA_HOME/common-lisp/source. To keep those around, an empty string
must be added to CL_SOURCE_REGISTRY, as documented here:
https://asdf.common-lisp.dev/asdf.html#Shell_002dfriendly-syntax-for-configuration
This commit is contained in:
Gavin Downard 2024-10-26 22:37:57 -07:00
parent 1a5ccd2054
commit 11f94542fb

View File

@ -307,7 +307,7 @@ let
$out/bin/${o.program} \
--add-flags "${toString o.flags}" \
--set ASDF "${o.asdfFasl}/asdf.${o.faslExt}" \
--prefix CL_SOURCE_REGISTRY : "$CL_SOURCE_REGISTRY" \
--prefix CL_SOURCE_REGISTRY : "$CL_SOURCE_REGISTRY''${CL_SOURCE_REGISTRY:+:}" \
--prefix ASDF_OUTPUT_TRANSLATIONS : "$(echo $CL_SOURCE_REGISTRY | sed s,//:,::,g):" \
--prefix LD_LIBRARY_PATH : "$LD_LIBRARY_PATH" \
--prefix DYLD_LIBRARY_PATH : "$DYLD_LIBRARY_PATH" \