Add default for ASDF in clwrapper

This commit is contained in:
Michael Raskin 2015-04-14 11:51:19 +03:00
parent b1730f47e0
commit 43f227d577
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,8 @@ NIX_LISP_ASDF_REGISTRY_CODE="
)
"
NIX_LISP_ASDF="${NIX_LISP_ASDF:-@asdf@}"
[ -z "$NIX_LISP_SKIP_CODE" ] && "$NIX_LISP_COMMAND" $NIX_LISP_EARLY_OPTIONS \
$NIX_LISP_EXEC_CODE "(load \"$NIX_LISP_ASDF/lib/common-lisp/asdf/build/asdf.lisp\")" \
$NIX_LISP_EXEC_CODE "$NIX_LISP_ASDF_REGISTRY_CODE" \

View File

@ -6,9 +6,9 @@ stdenv.mkDerivation {
installPhase=''
mkdir -p "$out"/bin
cp ${./cl-wrapper.sh} "$out"/bin/cl-wrapper.sh
cp ${./common-lisp.sh} "$out"/bin/common-lisp.sh
substituteAll "${./build-with-lisp.sh}" "$out/bin/build-with-lisp.sh"
substituteAll "${./cl-wrapper.sh}" "$out/bin/cl-wrapper.sh"
chmod a+x "$out"/bin/*
'';