tailscale: build derpprobe (#364918)
[NixPkgs.git] / pkgs / development / coq-modules / mathcomp-real-closed / default.nix
blob07d0f15f3e70925c1c02ad62c9eb460f0dcefc0f
2   coq,
3   mkCoqDerivation,
4   mathcomp,
5   mathcomp-bigenough,
6   lib,
7   version ? null,
8 }:
10 mkCoqDerivation {
12   namePrefix = [
13     "coq"
14     "mathcomp"
15   ];
16   pname = "real-closed";
17   owner = "math-comp";
18   inherit version;
19   release = {
20     "2.0.1".sha256 = "sha256-tQTI3PCl0q1vWpps28oATlzOI8TpVQh1jhTwVmhaZic=";
21     "2.0.0".sha256 = "sha256-sZvfiC5+5Lg4nRhfKKqyFzovCj2foAhqaq/w9F2bdU8=";
22     "1.1.4".sha256 = "sha256-8Hs6XfowbpeRD8RhMRf4ZJe2xf8kE0e8m7bPUzR/IM4=";
23     "1.1.3".sha256 = "1vwmmnzy8i4f203i2s60dn9i0kr27lsmwlqlyyzdpsghvbr8h5b7";
24     "1.1.2".sha256 = "0907x4nf7nnvn764q3x9lx41g74rilvq5cki5ziwgpsdgb98pppn";
25     "1.1.1".sha256 = "0ksjscrgq1i79vys4zrmgvzy2y4ylxa8wdsf4kih63apw6v5ws6b";
26     "1.0.5".sha256 = "0q8nkxr9fba4naylr5xk7hfxsqzq2pvwlg1j0xxlhlgr3fmlavg2";
27     "1.0.4".sha256 = "058v9dj973h9kfhqmvcy9a6xhhxzljr90cf99hdfcdx68fi2ha1b";
28     "1.0.3".sha256 = "1xbzkzqgw5p42dx1liy6wy8lzdk39zwd6j14fwvv5735k660z7yb";
29     "1.0.1".sha256 = "0j81gkjbza5vg89v4n9z598mfdbql416963rj4b8fzm7dp2r4rxg";
30   };
32   defaultVersion =
33     with lib.versions;
34     lib.switch
35       [ coq.version mathcomp.version ]
36       [
37         {
38           cases = [
39             (isGe "8.17")
40             (isGe "2.0.0")
41           ];
42           out = "2.0.1";
43         }
44         {
45           cases = [
46             (range "8.16" "8.19")
47             (range "2.0.0" "2.2.0")
48           ];
49           out = "2.0.0";
50         }
51         {
52           cases = [
53             (range "8.13" "8.19")
54             (range "1.13.0" "1.19.0")
55           ];
56           out = "1.1.4";
57         }
58         {
59           cases = [
60             (isGe "8.13")
61             (range "1.12.0" "1.18.0")
62           ];
63           out = "1.1.3";
64         }
65         {
66           cases = [
67             (isGe "8.10")
68             (range "1.12.0" "1.18.0")
69           ];
70           out = "1.1.2";
71         }
72         {
73           cases = [
74             (isGe "8.7")
75             "1.11.0"
76           ];
77           out = "1.1.1";
78         }
79         {
80           cases = [
81             (isGe "8.7")
82             (range "1.9.0" "1.10.0")
83           ];
84           out = "1.0.4";
85         }
86         {
87           cases = [
88             (isGe "8.7")
89             "1.8.0"
90           ];
91           out = "1.0.3";
92         }
93         {
94           cases = [
95             (isGe "8.7")
96             "1.7.0"
97           ];
98           out = "1.0.1";
99         }
100       ]
101       null;
103   propagatedBuildInputs = [
104     mathcomp.ssreflect
105     mathcomp.algebra
106     mathcomp.field
107     mathcomp.fingroup
108     mathcomp.solvable
109     mathcomp-bigenough
110   ];
112   meta = {
113     description = "Mathematical Components Library on real closed fields";
114     license = lib.licenses.cecill-c;
115   };