2010-12-01 21:29:42 +00:00
|
|
|
x@{builderDefsPackage
|
2014-08-12 00:57:40 +01:00
|
|
|
, ocaml, eprover, zlib
|
2010-12-01 21:29:42 +00:00
|
|
|
, ...}:
|
|
|
|
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";
|
2014-08-12 00:57:40 +01:00
|
|
|
version = "1.6.2";
|
2010-12-01 21:29:42 +00:00
|
|
|
name="${baseName}_v${version}";
|
2016-05-09 14:35:41 +01:00
|
|
|
url = "http://page.mi.fu-berlin.de/cbenzmueller/leo/leo2_v${version}.tgz";
|
2014-08-12 00:57:40 +01:00
|
|
|
hash="d46a94f5991623386eb9061cfb0d748e258359a8c690fded173d35303e0e9e3a";
|
2010-12-01 21:29:42 +00:00
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
2014-08-12 00:57:40 +01:00
|
|
|
sha256 = "1wjpmizb181iygnd18lx7p77fwaci2clgzs5ix5j51cc8f3pazmv";
|
2010-12-01 21:29:42 +00:00
|
|
|
};
|
|
|
|
|
2013-06-07 01:13:54 +01:00
|
|
|
name = "${sourceInfo.baseName}-${sourceInfo.version}";
|
2010-12-01 21:29:42 +00:00
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
phaseNames = ["makeInstallationDir" "doUnpack" "doMake" "doFinalize"];
|
|
|
|
|
|
|
|
makeInstallationDir = a.fullDepEntry (''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/share/leo2/build-dir"
|
2010-12-01 21:29:42 +00:00
|
|
|
cd "$out/share/leo2/build-dir"
|
|
|
|
'') ["minInit" "defEnsureDir"];
|
|
|
|
|
|
|
|
goSrcDir = "cd src/";
|
|
|
|
|
|
|
|
doFinalize = a.fullDepEntry (''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p "$out/bin"
|
2010-12-01 21:29:42 +00: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 20:16:00 +00:00
|
|
|
mkdir -p "$out/etc"
|
2010-12-01 21:29:42 +00:00
|
|
|
echo -e "e = ${eprover}/bin/eprover\\nepclextract = ${eprover}/bin/epclextract" > "$out/etc/leoatprc"
|
|
|
|
'') ["minInit" "doMake" "defEnsureDir"];
|
|
|
|
|
2014-08-12 00:57:40 +01:00
|
|
|
makeFlags = [
|
|
|
|
"SHELL=${a.stdenv.shell}"
|
|
|
|
];
|
|
|
|
|
2010-12-01 21:29:42 +00:00
|
|
|
meta = {
|
|
|
|
description = "A high-performance typed higher order prover";
|
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
2014-12-20 23:00:35 +00:00
|
|
|
license = a.lib.licenses.bsd3;
|
2014-08-12 00:57:40 +01:00
|
|
|
inherit (sourceInfo) version;
|
|
|
|
homepage = "http://page.mi.fu-berlin.de/cbenzmueller/leo/";
|
|
|
|
downloadPage = "http://page.mi.fu-berlin.de/cbenzmueller/leo/download.html";
|
2010-12-01 21:29:42 +00:00
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|