blob: 04ab9a5b5ab3a6a9c3d57beaca3f7d15870e37e0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
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";
version="1.2.8";
name="${baseName}_v${version}";
url="http://www.ags.uni-sb.de/~leo/${name}.tgz";
hash="d46a94f5991623386eb9061cfb0d748e258359a8c690fded173d45303e0e9e3a";
};
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 (''
ensureDir "$out/share/leo2/build-dir"
cd "$out/share/leo2/build-dir"
'') ["minInit" "defEnsureDir"];
goSrcDir = "cd src/";
doFinalize = a.fullDepEntry (''
ensureDir "$out/bin"
echo -e "#! /bin/sh\\n$PWD/../bin/leo --atprc $out/etc/leoatprc \"\$@\"\\n" > "$out/bin/leo"
chmod a+x "$out/bin/leo"
ensureDir "$out/etc"
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
|