2010-07-29 19:55:16 +01:00
|
|
|
{ stdenv, fetchurl, builderDefs, unzip, clisp }:
|
2008-11-04 21:24:10 +00:00
|
|
|
let localDefs = builderDefs.passthru.function {
|
2007-11-08 14:51:41 +00:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
|
|
|
url = http://www.lambdassociates.org/Download/Qi9.1.zip;
|
|
|
|
sha256 = "1j584i7pj38rnlf7v9njfdwc6gc296v5friw2887dsw34dmwyg3f";
|
|
|
|
};
|
|
|
|
buildInputs = [ unzip clisp];
|
|
|
|
configureFlags = [];
|
2008-08-19 06:54:09 +01:00
|
|
|
};
|
2008-01-18 12:36:56 +00:00
|
|
|
in with localDefs;
|
2007-11-08 14:51:41 +00:00
|
|
|
let
|
2007-11-08 15:15:41 +00:00
|
|
|
shell=stdenv.shell;
|
2007-11-08 14:51:41 +00:00
|
|
|
in
|
|
|
|
let
|
2009-05-20 00:25:58 +01:00
|
|
|
allBuild = fullDepEntry ("
|
2007-11-08 14:51:41 +00:00
|
|
|
(sleep 0.1; echo ) | clisp install.txt;
|
|
|
|
(sleep 0.1; echo -e '1\n(quit)\n' ) | sh Qi-Linux-CLisp
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p \$out/share
|
|
|
|
mkdir -p \$out/bin
|
2007-11-08 14:51:41 +00:00
|
|
|
cp -r . \$out/share/Qi-9.1
|
2007-11-08 15:15:41 +00:00
|
|
|
echo -e '#! ${shell}
|
2007-11-08 14:51:41 +00: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 {
|
2009-11-18 09:39:59 +00:00
|
|
|
name = "Qi-9.1";
|
2007-11-08 14:51:41 +00:00
|
|
|
builder = writeScript (name + "-builder")
|
2008-01-18 12:36:56 +00:00
|
|
|
(textClosure localDefs [allBuild doForceShare doPropagate]);
|
2007-11-08 14:51:41 +00:00
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "Qi - next generation on top of Common Lisp";
|
2008-03-02 18:49:31 +00:00
|
|
|
inherit src;
|
2007-11-08 14:51:41 +00:00
|
|
|
};
|
|
|
|
}
|