Skip to content

Commit fec9e49

Browse files
committed
Add overlays
1 parent 5914f92 commit fec9e49

File tree

2 files changed

+140
-0
lines changed

2 files changed

+140
-0
lines changed
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
lib,
3+
mkCoqDerivation,
4+
coq,
5+
mathcomp,
6+
mathcomp-finmap,
7+
fourcolor,
8+
stdlib,
9+
version ? null,
10+
}:
11+
12+
mkCoqDerivation {
13+
pname = "graph-theory";
14+
15+
release."0.9".sha256 = "sha256-Hl3JS9YERD8QQziXqZ9DqLHKp63RKI9HxoFYWSkJQZI=";
16+
release."0.9.1".sha256 = "sha256-lRRY+501x+DqNeItBnbwYIqWLDksinWIY4x/iojRNYU=";
17+
release."0.9.2".sha256 = "sha256-DPYCZS8CzkfgpR+lmYhV2v20ezMtyWp8hdWpuh0OOQU=";
18+
release."0.9.3".sha256 = "sha256-9WX3gsw+4btJLqcGg2W+7Qy+jaZtkfw7vCp8sXYmaWw=";
19+
release."0.9.4".sha256 = "sha256-fXTAsRdPisNhg8Umaa7S7gZ1M8zuPGg426KP9fAkmXQ=";
20+
release."0.9.6".sha256 = "sha256-fvGb970tRE4xj1pBIhNBDaqssDd6kNQ/+s0c+aOO5IE=";
21+
22+
releaseRev = v: "v${v}";
23+
24+
inherit version;
25+
defaultVersion =
26+
let
27+
case = coq: mc: out: {
28+
cases = [
29+
coq
30+
mc
31+
];
32+
inherit out;
33+
};
34+
in
35+
with lib.versions;
36+
lib.switch
37+
[ coq.coq-version mathcomp.version ]
38+
[
39+
(case (range "8.18" "9.0") (range "2.0.0" "2.4.0") "0.9.6")
40+
(case (range "8.16" "8.19") (range "2.0.0" "2.3.0") "0.9.4")
41+
(case (range "8.16" "8.18") (range "2.0.0" "2.1.0") "0.9.3")
42+
(case (range "8.14" "8.18") (range "1.13.0" "1.18.0") "0.9.2")
43+
(case (range "8.14" "8.16") (range "1.13.0" "1.14.0") "0.9.1")
44+
(case (range "8.12" "8.13") (range "1.12.0" "1.14.0") "0.9")
45+
]
46+
null;
47+
48+
propagatedBuildInputs = [
49+
mathcomp.ssreflect
50+
mathcomp.fingroup
51+
mathcomp.algebra
52+
mathcomp-finmap
53+
fourcolor
54+
stdlib
55+
];
56+
57+
meta = with lib; {
58+
description = "Library of formalized graph theory results in Coq";
59+
longDescription = ''
60+
A library of formalized graph theory results, including various
61+
standard results from the literature (e.g., Menger’s Theorem, Hall’s
62+
Marriage Theorem, and the excluded minor characterization of
63+
treewidth-two graphs) as well as some more recent results arising from
64+
the study of relation algebra within the ERC CoVeCe project (e.g.,
65+
soundness and completeness of an axiomatization of graph isomorphism).
66+
'';
67+
maintainers = with maintainers; [ siraben ];
68+
license = licenses.cecill-b;
69+
};
70+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
{
2+
coq,
3+
mkCoqDerivation,
4+
mathcomp-analysis,
5+
mathcomp-analysis-stdlib,
6+
interval,
7+
lib,
8+
version ? null,
9+
}:
10+
11+
(mkCoqDerivation {
12+
namePrefix = [
13+
"coq"
14+
"mathcomp"
15+
];
16+
pname = "infotheo";
17+
owner = "affeldt-aist";
18+
inherit version;
19+
20+
defaultVersion =
21+
let
22+
case = coq: mc: out: {
23+
cases = [
24+
coq
25+
mc
26+
];
27+
inherit out;
28+
};
29+
in
30+
with lib.versions;
31+
lib.switch
32+
[ coq.coq-version mathcomp-analysis.version ]
33+
[
34+
(case (range "8.20" "9.1") (isGe "1.12") "0.9.4")
35+
(case (range "8.19" "8.20") (range "1.10" "1.11") "0.9.3")
36+
(case (range "8.19" "8.20") (isGe "1.9") "0.9.1")
37+
(case (range "8.19" "8.20") (isGe "1.7") "0.7.7")
38+
(case (range "8.19" "8.20") (isGe "1.7") "0.7.5")
39+
(case (range "8.18" "8.20") (isGe "1.5") "0.7.3")
40+
(case (range "8.18" "8.19") (isGe "1.2") "0.7.2")
41+
(case (range "8.17" "8.19") (isGe "1.0") "0.7.1")
42+
(case (isGe "8.17") (range "0.6.6" "0.7.0") "0.6.1")
43+
(case (range "8.17" "8.18") (range "0.6.0" "0.6.7") "0.5.2")
44+
(case (range "8.15" "8.16") (range "0.5.4" "0.6.5") "0.5.1")
45+
]
46+
null;
47+
release."0.9.4".sha256 = "sha256-btHOBNMdXvlG2jxC04+4qmIjeyuaqtyugm2Ruj3lQr8=";
48+
release."0.9.3".sha256 = "sha256-8+cnVKNAvZ3MVV3BpS8UmCIxJphsQRBv3swek1eEBjE=";
49+
release."0.9.1".sha256 = "sha256-WI20HxMHr1ZUwOGPIUl+nRI8TxVUa2+F1xcGjRDHO9g=";
50+
release."0.7.7".sha256 = "sha256-kEbpMl7U+I2kvqi1VrjhIVFkZFO6h0tTHEUZRbHYG7E=";
51+
release."0.7.5".sha256 = "sha256-pzPo+Acjx3vlyqOkSZQ8uT2BDLSTfbAnRm39e+/CqE0=";
52+
release."0.7.3".sha256 = "sha256-7+qPtE1KfDmo9ZsQtWMzoR2MYnFpTjFHK/yZYVm+GxA=";
53+
release."0.7.2".sha256 = "sha256-dekrdVmuTcqXXmKhIb831EKtMhbPrXHJZhzmGb9rdRo=";
54+
release."0.7.1".sha256 = "sha256-/4Elb35SmscG6EjEcHYDo+AmWrpBUlygZL0WhaD+fcY=";
55+
release."0.6.1".sha256 = "sha256-tFB5lrwRPIlHkP+ebgcJwu03Cc9yVaOINOAo8Bf2LT4=";
56+
release."0.5.1".sha256 = "sha256-yBBl5l+V+dggsg5KM59Yo9CULKog/xxE8vrW+ZRnX7Y=";
57+
release."0.5.2".sha256 = "sha256-8WAnAV53c0pMTdwj8XcUDUkLZbpUgIQbEOgOb63uHQA=";
58+
59+
propagatedBuildInputs = [ mathcomp-analysis-stdlib ];
60+
61+
meta = with lib; {
62+
description = "Coq formalization of information theory and linear error-correcting codes";
63+
license = licenses.lgpl21Plus;
64+
};
65+
}).overrideAttrs
66+
(o: {
67+
propagatedBuildInputs =
68+
o.propagatedBuildInputs
69+
++ lib.optional (lib.versions.isGe "0.7.2" o.version || o.version == "dev") interval;
70+
})

0 commit comments

Comments
 (0)