blob: 660dbabde28409314eb7c54d20c9754e1678a2a6 (
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
63
64
65
66
67
68
69
70
71
72
73
|
{
lib,
mkCoqDerivation,
coq,
bignums,
math-classes,
coq-elpi,
version ? null,
}:
(mkCoqDerivation {
pname = "corn";
inherit version;
defaultVersion =
with lib.versions;
lib.switch coq.coq-version [
{
case = (range "8.18" "8.20");
out = "8.20.0";
}
{
case = (range "8.17" "8.20");
out = "8.19.0";
}
{
case = (range "8.14" "8.18");
out = "8.18.0";
}
{
case = (range "8.11" "8.17");
out = "8.16.0";
}
{
case = (range "8.7" "8.15");
out = "8.13.0";
}
{
case = "8.6";
out = "8.8.1";
}
] null;
release = {
"8.8.1".sha256 = "0gh32j0f18vv5lmf6nb87nr5450w6ai06rhrnvlx2wwi79gv10wp";
"8.12.0".sha256 = "0b92vhyzn1j6cs84z2182fn82hxxj0bqq7hk6cs4awwb3vc7dkhi";
"8.13.0".sha256 = "1wzr7mdsnf1rq7q0dvmv55vxzysy85b00ahwbs868bl7m8fk8x5b";
"8.16.0".sha256 = "sha256-ZE/EEIndxHfo/9Me5NX4ZfcH0ZAQ4sRfZY7LRZfLXBQ=";
"8.18.0".sha256 = "sha256-ow3mfarZ1PvBGf5WLnI8LdF3E+8A6fN7cOcXHrZJLo0=";
"8.19.0".sha256 = "sha256-h5MlfRuv2hTbxGmpLUEGQO1YqQTwUNEHZzCfvdOU1TA=";
"8.20.0".sha256 = "sha256-tl68REU6xTbSOzhPucQPd9A3YnnaMNbSY8gl4Seyp10=";
};
configureScript = "./configure.sh";
dontAddPrefix = true;
mlPlugin = true; # uses coq-bignums.plugin
propagatedBuildInputs = [
bignums
math-classes
];
meta = {
homepage = "http://c-corn.github.io/";
license = lib.licenses.gpl2;
description = "Coq library for constructive analysis";
maintainers = [ lib.maintainers.vbgl ];
};
}).overrideAttrs
(o: {
propagatedBuildInputs =
o.propagatedBuildInputs
++ lib.optional (lib.versions.isGt "8.19.0" o.version || o.version == "dev") coq-elpi;
})
|