mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
907bb1aac6
* libdbi / libdbi-drivers: updated to 0.8.3, and make it compile with SQLite. * qemu-image: fix the URL. * gdmap: make it build again (requires an older GTK+). * rlwrap: updated to 0.37. * smbfs-fuse -> fusesmb to match the upstream name. * x11vnc: updated to 0.9.10. * clearlyU: fix the URL. * Various packages: follow the coding conventions. svn path=/nixpkgs/trunk/; revision=22814
38 lines
1 KiB
Nix
38 lines
1 KiB
Nix
{ stdenv, fetchurl, builderDefs, unzip, clisp }:
|
|
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;
|
|
};
|
|
}
|