Adding a Common Lisp wrapper.
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
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
{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];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user