nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 mkCoqDerivation,
4 coq,
5 bignums,
6 version ? null,
7}:
8
9mkCoqDerivation {
10 pname = "color";
11 owner = "fblanqui";
12 inherit version;
13 defaultVersion =
14 let
15 case = case: out: { inherit case out; };
16 in
17 with lib.versions;
18 lib.switch coq.version [
19 (case (range "8.14" "9.1") "1.8.5")
20 (case (range "8.12" "8.16") "1.8.2")
21 (case (range "8.10" "8.11") "1.7.0")
22 (case (range "8.8" "8.9") "1.6.0")
23 (case (range "8.6" "8.7") "1.4.0")
24 ] null;
25
26 release."1.8.5".sha256 = "sha256-zKAyj6rKAasDF+iKExmpVHMe2WwgAwv2j1mmiVAl7ys=";
27 release."1.8.4".sha256 = "sha256-WlRiaLgnFFW5AY0z6EzdP1mevNe1GHsik6wULJLN4k0=";
28 release."1.8.3".sha256 = "sha256-mMUzIorkQ6WWQBJLk1ioUNwAdDdGHJyhenIvkAjALVU=";
29 release."1.8.2".sha256 = "sha256:1gvx5cxm582793vxzrvsmhxif7px18h9xsb2jljy2gkphdmsnpqj";
30 release."1.8.1".sha256 = "0knhca9fffmyldn4q16h9265i7ih0h4jhcarq4rkn0wnn7x8w8yw";
31 release."1.7.0".rev = "08b5481ed6ea1a5d2c4c068b62156f5be6d82b40";
32 release."1.7.0".sha256 = "1w7fmcpf0691gcwq00lm788k4ijlwz3667zj40j5jjc8j8hj7cq3";
33 release."1.6.0".rev = "328aa06270584b578edc0d2925e773cced4f14c8";
34 release."1.6.0".sha256 = "07sy9kw1qlynsqy251adgi8b3hghrc9xxl2rid6c82mxfsp329sd";
35 release."1.4.0".rev = "168c6b86c7d3f87ee51791f795a8828b1521589a";
36 release."1.4.0".sha256 = "1d2whsgs3kcg5wgampd6yaqagcpmzhgb6a0hp6qn4lbimck5dfmm";
37
38 mlPlugin = true; # uses coq-bignums.plugin
39
40 propagatedBuildInputs = [ bignums ];
41 enableParallelBuilding = false;
42
43 meta = {
44 homepage = "https://github.com/fblanqui/color";
45 description = "CoLoR is a library of formal mathematical definitions and proofs of theorems on rewriting theory and termination whose correctness has been mechanically checked by the Coq proof assistant";
46 maintainers = with lib.maintainers; [
47 jpas
48 jwiegley
49 ];
50 };
51}