2011-03-28 09:16:15 +01:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, jdk /* only used in bootstrap */
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="picolisp";
|
|
|
|
tarballBaseName="picoLisp";
|
2015-03-21 22:49:38 +00:00
|
|
|
version="3.1.9";
|
2011-03-28 09:16:15 +01:00
|
|
|
name="${baseName}-${version}";
|
|
|
|
tarballName="${tarballBaseName}-${version}";
|
|
|
|
extension="tgz";
|
|
|
|
url="http://www.software-lab.de/${tarballName}.${extension}";
|
2015-03-21 22:49:38 +00:00
|
|
|
sha256="1rhfd743ga9qsgn4h2aw1xcgrc7amsllli2zqg8cgm408vxkr6j1";
|
2011-03-28 09:16:15 +01:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
2014-11-03 22:31:48 +00:00
|
|
|
sha256 = sourceInfo.sha256;
|
2011-03-28 09:16:15 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["doMake" "doDeploy"];
|
|
|
|
|
|
|
|
goSrcDir = if a.stdenv.system == "x86_64-linux" then
|
|
|
|
"cd src64" else "cd src";
|
|
|
|
makeFlags = [''PREFIX=$out''];
|
|
|
|
|
|
|
|
doDeploy = a.fullDepEntry (''
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
sed -e "s@/usr/@$out/@g" -i bin/pil
|
|
|
|
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/share/picolisp" "$out/lib" "$out/bin"
|
2011-03-28 09:16:15 +01: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"
|
|
|
|
'') ["minInit" "defEnsureDir" "doMake"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "An interpreter for a small Lisp dialect with builtin DB";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
license = a.lib.licenses.mit;
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://www.software-lab.de/down.html";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|