diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-07-29 08:21:21 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-07-29 08:21:21 +0000 |
commit | ba498d4a43971c454a183e407e26e7803fbf8612 (patch) | |
tree | 9e5296c245def8938243bf91491031c4886cd09e /pkgs/development/compilers/qi/default.nix | |
parent | 41b7a3cda6f43f939920ec26bc0ce3a959125e19 (diff) | |
download | nixpkgs-ba498d4a43971c454a183e407e26e7803fbf8612.tar nixpkgs-ba498d4a43971c454a183e407e26e7803fbf8612.tar.gz nixpkgs-ba498d4a43971c454a183e407e26e7803fbf8612.tar.bz2 nixpkgs-ba498d4a43971c454a183e407e26e7803fbf8612.tar.lz nixpkgs-ba498d4a43971c454a183e407e26e7803fbf8612.tar.xz nixpkgs-ba498d4a43971c454a183e407e26e7803fbf8612.tar.zst nixpkgs-ba498d4a43971c454a183e407e26e7803fbf8612.zip |
* composedArgsAndFun -> makeOverridable for consistency.
* Rename a few single-version packages to "default.nix". svn path=/nixpkgs/trunk/; revision=22803
Diffstat (limited to 'pkgs/development/compilers/qi/default.nix')
-rw-r--r-- | pkgs/development/compilers/qi/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/development/compilers/qi/default.nix b/pkgs/development/compilers/qi/default.nix new file mode 100644 index 00000000000..8f094f9965a --- /dev/null +++ b/pkgs/development/compilers/qi/default.nix @@ -0,0 +1,37 @@ +args : with args; + let localDefs = builderDefs.passthru.function { + src = /* put a fetchurl here */ + fetchurl { + url = http://www.lambdassociates.org/Download/Qi9.1.zip; + sha256 = "1j584i7pj38rnlf7v9njfdwc6gc296v5friw2887dsw34dmwyg3f"; + }; + buildInputs = [ unzip clisp]; + configureFlags = []; + }; + in with localDefs; +let + shell=stdenv.shell; +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 + echo -e '#! ${shell} + 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-9.1"; + builder = writeScript (name + "-builder") + (textClosure localDefs [allBuild doForceShare doPropagate]); + meta = { + description = "Qi - next generation on top of Common Lisp"; + inherit src; + }; +} |