1{stdenv, fetchurl, asdf, lisp ? null}:
2stdenv.mkDerivation {
3 name = "cl-wrapper-script";
4
5 buildPhase="";
6
7 installPhase=''
8 mkdir -p "$out"/bin
9 cp ${./common-lisp.sh} "$out"/bin/common-lisp.sh
10 substituteAll "${./build-with-lisp.sh}" "$out/bin/build-with-lisp.sh"
11 substituteAll "${./cl-wrapper.sh}" "$out/bin/cl-wrapper.sh"
12 chmod a+x "$out"/bin/*
13 '';
14
15 inherit asdf lisp;
16
17 setupHook = ./setup-hook.sh;
18
19 phases="installPhase fixupPhase";
20
21 preferLocalBuild = true;
22
23 passthru = {
24 inherit lisp;
25 };
26
27 meta = {
28 description = ''Script used to wrap Common Lisp implementations'';
29 maintainers = [stdenv.lib.maintainers.raskin];
30 };
31}