2007-11-08 15:51:41 +01:00
|
|
|
args : with args;
|
2008-01-23 19:11:03 +01:00
|
|
|
let localDefs = builderDefs {
|
2007-11-08 15:51:41 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://www.lambdassociates.org/Download/Qi9.1.zip;
|
|
|
|
sha256 = "1j584i7pj38rnlf7v9njfdwc6gc296v5friw2887dsw34dmwyg3f";
|
|
|
|
};
|
|
|
|
buildInputs = [ unzip clisp];
|
|
|
|
configureFlags = [];
|
|
|
|
} null; /* null is a terminator for sumArgs */
|
2008-01-23 19:11:03 +01:00
|
|
|
in with localDefs;
|
2007-11-08 15:51:41 +01:00
|
|
|
let
|
2007-11-08 16:15:41 +01:00
|
|
|
shell=stdenv.shell;
|
2007-11-08 15:51:41 +01:00
|
|
|
in
|
|
|
|
let
|
|
|
|
allBuild = FullDepEntry ("
|
|
|
|
(sleep 0.1; echo ) | clisp install.txt;
|
|
|
|
(sleep 0.1; echo -e '1\n(quit)\n' ) | sh Qi-Linux-CLisp
|
|
|
|
ensureDir \$out/share
|
|
|
|
ensureDir \$out/bin
|
|
|
|
cp -r . \$out/share/Qi-9.1
|
2007-11-08 16:15:41 +01:00
|
|
|
echo -e '#! ${shell}
|
2007-11-08 15:51:41 +01:00
|
|
|
arg1=\${1:-'\$out'/share/Qi-9.1/startup.txt}
|
|
|
|
shift
|
|
|
|
clisp -M '\$out'/share/Qi-9.1/lispinit.mem \$arg1 \"\$@\"\\n' > \$out/bin/qi
|
|
|
|
chmod a+x \$out/bin/qi
|
|
|
|
") [ addInputs minInit doUnpack defEnsureDir];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "Qi-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
2008-01-23 19:11:03 +01:00
|
|
|
(textClosure localDefs [allBuild doForceShare doPropagate]);
|
2007-11-08 15:51:41 +01:00
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
Qi - next generation on top of Common Lisp.
|
|
|
|
";
|
|
|
|
};
|
|
|
|
}
|