d44439d03e
Features: + configurable via environment variables + can skip the actual launching of the lisp implementation (source it with NIX_LISP_SKIP_CODE=1 to get all the settings) + currently supports SBCL, CLisp, ECL + determines lisp implementation from NIX_LISP_COMMAND variable or from buildInputs + sets ASDF search path for packages using buildInputs
29 lines
560 B
Nix
29 lines
560 B
Nix
{stdenv, fetchurl, asdf, lisp ? null}:
|
|
stdenv.mkDerivation {
|
|
name = "cl-wrapper-script";
|
|
|
|
buildPhase="";
|
|
|
|
installPhase=''
|
|
mkdir -p "$out"/bin
|
|
cp ${./cl-wrapper.sh} "$out"/bin/cl-wrapper.sh
|
|
cp ${./common-lisp.sh} "$out"/bin/common-lisp.sh
|
|
chmod a+x "$out"/bin/*
|
|
'';
|
|
|
|
inherit asdf lisp;
|
|
|
|
setupHook = ./setup-hook.sh;
|
|
|
|
phases="installPhase fixupPhase";
|
|
|
|
passthru = {
|
|
inherit lisp;
|
|
};
|
|
|
|
meta = {
|
|
description = ''Script used to wrap Common Lisp implementations'';
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
|
};
|
|
}
|