2015-03-21 21:28:11 +01:00
|
|
|
{ stdenv, fetchurl, jdk }:
|
|
|
|
with stdenv.lib;
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "picoLisp-${version}";
|
2015-04-25 19:04:40 +02:00
|
|
|
version = "3.1.10";
|
2015-03-21 21:28:11 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.software-lab.de/${name}.tgz";
|
2015-04-25 19:04:40 +02:00
|
|
|
sha256 = "1pn5c0d81rz1fazsdijhw4cqybaad2wn6qramdj2qqkzxa3vvll1";
|
2011-03-28 10:16:15 +02:00
|
|
|
};
|
2015-03-21 21:28:11 +01:00
|
|
|
buildInputs = [ jdk ];
|
|
|
|
sourceRoot = ''picoLisp/src${optionalString stdenv.is64bit "64"}'';
|
|
|
|
installPhase = ''
|
2011-03-28 10:16:15 +02:00
|
|
|
cd ..
|
|
|
|
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/share/picolisp" "$out/lib" "$out/bin"
|
2011-03-28 10:16:15 +02:00
|
|
|
cp -r . "$out/share/picolisp/build-dir"
|
|
|
|
ln -s "$out/share/picolisp/build-dir" "$out/lib/picolisp"
|
|
|
|
ln -s "$out/lib/picolisp/bin/picolisp" "$out/bin/picolisp"
|
2015-03-21 21:28:11 +01:00
|
|
|
|
|
|
|
cat >"$out/bin/pil" <<EOF
|
|
|
|
#! /bin/sh
|
|
|
|
$out/bin/picolisp $out/lib/picolisp/lib.l @lib/misc.l @lib/btree.l @lib/db.l @lib/pilog.l
|
|
|
|
EOF
|
|
|
|
chmod +x "$out/bin/pil"
|
|
|
|
|
|
|
|
mkdir -p "$out/share/emacs"
|
|
|
|
ln -s "$out/lib/picolisp/lib/el" "$out/share/emacs/site-lisp"
|
|
|
|
'';
|
|
|
|
|
2011-03-28 10:16:15 +02:00
|
|
|
meta = {
|
2015-03-21 21:28:11 +01:00
|
|
|
description = "A simple Lisp with an integrated database.";
|
|
|
|
homepage = http://picolisp.com/;
|
|
|
|
license = licenses.mit;
|
|
|
|
platform = platforms.all;
|
|
|
|
maintainers = with maintainers; [ raskin ];
|
2011-03-28 10:16:15 +02:00
|
|
|
};
|
2015-03-21 21:28:11 +01:00
|
|
|
|
2011-03-28 10:16:15 +02:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://www.software-lab.de/down.html";
|
|
|
|
};
|
|
|
|
};
|
2015-03-21 21:28:11 +01:00
|
|
|
}
|