1{
2 coq,
3 mkCoqDerivation,
4 mathcomp-boot,
5 lib,
6 version ? null,
7}:
8
9mkCoqDerivation {
10
11 namePrefix = [
12 "coq"
13 "mathcomp"
14 ];
15 pname = "finmap";
16 owner = "math-comp";
17 inherit version;
18 defaultVersion =
19 let
20 case = coq: mc: out: {
21 cases = [
22 coq
23 mc
24 ];
25 inherit out;
26 };
27 in
28 with lib.versions;
29 lib.switch
30 [ coq.coq-version mathcomp-boot.version ]
31 [
32 (case (range "8.20" "9.1") (range "2.3" "2.4") "2.2.0")
33 (case (range "8.16" "9.0") (range "2.0" "2.3") "2.1.0")
34 (case (range "8.16" "8.18") (range "2.0" "2.1") "2.0.0")
35 (case (range "8.13" "8.20") (range "1.12" "1.19") "1.5.2")
36 (case (isGe "8.10") (range "1.11" "1.17") "1.5.1")
37 (case (range "8.7" "8.11") "1.11.0" "1.5.0")
38 (case (isEq "8.11") (range "1.8" "1.10") "1.4.0+coq-8.11")
39 (case (range "8.7" "8.11.0") (range "1.8" "1.10") "1.4.0")
40 (case (range "8.7" "8.11.0") (range "1.8" "1.10") "1.3.4")
41 (case (range "8.7" "8.9") "1.7.0" "1.1.0")
42 (case (range "8.6" "8.7") (range "1.6.1" "1.7") "1.0.0")
43 ]
44 null;
45 release = {
46 "2.2.0".sha256 = "sha256-oDQEZOutrJxmN8FvzovUIhqw0mwc8Ej7thrieJrW8BY=";
47 "2.1.0".sha256 = "sha256-gh0cnhdVDyo+D5zdtxLc10kGKQLQ3ITzHnMC45mCtpY=";
48 "2.0.0".sha256 = "sha256-0Wr1ZUYVuZH74vawO4EZlZ+K3kq+s1xEz/BfzyKj+wk=";
49 "1.5.2".sha256 = "sha256-0KmmSjc2AlUo6BKr9RZ4FjL9wlGISlTGU0X1Eu7l4sw=";
50 "1.5.1".sha256 = "0ryfml4pf1dfya16d8ma80favasmrygvspvb923n06kfw9v986j7";
51 "1.5.0".sha256 = "0vx9n1fi23592b3hv5p5ycy7mxc8qh1y5q05aksfwbzkk5zjkwnq";
52 "1.4.1".sha256 = "0kx4nx24dml1igk0w0qijmw221r5bgxhwhl5qicnxp7ab3c35s8p";
53 "1.4.0+coq-8.11".sha256 = "1fd00ihyx0kzq5fblh9vr8s5mr1kg7p6pk11c4gr8svl1n69ppmb";
54 "1.4.0".sha256 = "0mp82mcmrs424ff1vj3cvd8353r9vcap027h3p0iprr1vkkwjbzd";
55 "1.3.4".sha256 = "0f5a62ljhixy5d7gsnwd66gf054l26k3m79fb8nz40i2mgp6l9ii";
56 "1.2.1".sha256 = "0jryb5dq8js3imbmwrxignlk5zh8gwfb1wr4b1s7jbwz410vp7zf";
57 "1.1.0".sha256 = "05df59v3na8jhpsfp7hq3niam6asgcaipg2wngnzxzqnl86srp2a";
58 "1.0.0".sha256 = "0sah7k9qm8sw17cgd02f0x84hki8vj8kdz7h15i7rmz08rj0whpa";
59 };
60
61 propagatedBuildInputs = [ mathcomp-boot ];
62
63 meta = {
64 description = "Finset and finmap library";
65 license = lib.licenses.cecill-b;
66 };
67}