2010-12-01 22:29:42 +01:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, ocaml, eprover
|
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
["eprover"];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="leo2";
|
2011-08-05 20:22:40 +02:00
|
|
|
version="1.2.8";
|
2010-12-01 22:29:42 +01:00
|
|
|
name="${baseName}_v${version}";
|
|
|
|
url="http://www.ags.uni-sb.de/~leo/${name}.tgz";
|
2011-08-05 20:22:40 +02:00
|
|
|
hash="d46a94f5991623386eb9061cfb0d748e258359a8c690fded173d45303e0e9e3a";
|
2010-12-01 22:29:42 +01:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
phaseNames = ["makeInstallationDir" "doUnpack" "doMake" "doFinalize"];
|
|
|
|
|
|
|
|
makeInstallationDir = a.fullDepEntry (''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/share/leo2/build-dir"
|
2010-12-01 22:29:42 +01:00
|
|
|
cd "$out/share/leo2/build-dir"
|
|
|
|
'') ["minInit" "defEnsureDir"];
|
|
|
|
|
|
|
|
goSrcDir = "cd src/";
|
|
|
|
|
|
|
|
doFinalize = a.fullDepEntry (''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/bin"
|
2010-12-01 22:29:42 +01:00
|
|
|
echo -e "#! /bin/sh\\n$PWD/../bin/leo --atprc $out/etc/leoatprc \"\$@\"\\n" > "$out/bin/leo"
|
|
|
|
chmod a+x "$out/bin/leo"
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p "$out/etc"
|
2010-12-01 22:29:42 +01:00
|
|
|
echo -e "e = ${eprover}/bin/eprover\\nepclextract = ${eprover}/bin/epclextract" > "$out/etc/leoatprc"
|
|
|
|
'') ["minInit" "doMake" "defEnsureDir"];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A high-performance typed higher order prover";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
license = "BSD";
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://www.ags.uni-sb.de/~leo/download.html";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|