···1{ lib, mkCoqDerivation, coq, version ? null }:
23-with lib; mkCoqDerivation {
4 pname = "StructTact";
5 owner = "uwplse";
6 inherit version;
7- defaultVersion = with versions; switch coq.coq-version [
8 { case = range "8.6" "8.16"; out = "20210328"; }
9 { case = range "8.5" "8.13"; out = "20181102"; }
10 ] null;
···1{ lib, mkCoqDerivation, coq, version ? null }:
23+mkCoqDerivation {
4 pname = "StructTact";
5 owner = "uwplse";
6 inherit version;
7+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
8 { case = range "8.6" "8.16"; out = "20210328"; }
9 { case = range "8.5" "8.13"; out = "20181102"; }
10 ] null;
+2-4
pkgs/development/coq-modules/VST/default.nix
···1{ lib, mkCoqDerivation, coq, compcert, ITree, version ? null }:
23-with lib;
4-5# A few modules that are not built and installed by default
6# but that may be useful to some users.
7# They depend on ITree.
···11 "powerlater.v"
12 ]
13 # floyd/printf.v is broken in VST 2.9
14- ++ optional (!versions.isGe "8.13" coq.coq-version) "printf.v"
15 ++ [
16 "quickprogram.v"
17 ];
···24 owner = "PrincetonUniversity";
25 repo = "VST";
26 inherit version;
27- defaultVersion = with versions; switch coq.coq-version [
28 { case = range "8.15" "8.16"; out = "2.11.1"; }
29 { case = range "8.14" "8.16"; out = "2.10"; }
30 { case = range "8.13" "8.15"; out = "2.9"; }
···1{ lib, mkCoqDerivation, coq, compcert, ITree, version ? null }:
2003# A few modules that are not built and installed by default
4# but that may be useful to some users.
5# They depend on ITree.
···9 "powerlater.v"
10 ]
11 # floyd/printf.v is broken in VST 2.9
12+ ++ lib.optional (!lib.versions.isGe "8.13" coq.coq-version) "printf.v"
13 ++ [
14 "quickprogram.v"
15 ];
···22 owner = "PrincetonUniversity";
23 repo = "VST";
24 inherit version;
25+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
26 { case = range "8.15" "8.16"; out = "2.11.1"; }
27 { case = range "8.14" "8.16"; out = "2.10"; }
28 { case = range "8.13" "8.15"; out = "2.9"; }
···1{ lib, mkCoqDerivation, coq, ssreflect, equations, version ? null }:
23-with lib; mkCoqDerivation {
45 pname = "category-theory";
6 owner = "jwiegley";
···16 release."20180709".sha256 = "0f2nr8dgn1ab7hr7jrdmr1zla9g9h8216q4yf4wnff9qkln8sbbs";
1718 inherit version;
19- defaultVersion = with versions; switch coq.coq-version [
20 { case = range "8.14" "8.16"; out = "1.0.0"; }
21 { case = range "8.10" "8.15"; out = "20211213"; }
22 { case = range "8.8" "8.9"; out = "20190414"; }
···2829 meta = {
30 description = "A formalization of category theory in Coq for personal study and practical work";
31- maintainers = with maintainers; [ jwiegley ];
32 };
33}
···1{ lib, mkCoqDerivation, coq, ssreflect, equations, version ? null }:
23+mkCoqDerivation {
45 pname = "category-theory";
6 owner = "jwiegley";
···16 release."20180709".sha256 = "0f2nr8dgn1ab7hr7jrdmr1zla9g9h8216q4yf4wnff9qkln8sbbs";
1718 inherit version;
19+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
20 { case = range "8.14" "8.16"; out = "1.0.0"; }
21 { case = range "8.10" "8.15"; out = "20211213"; }
22 { case = range "8.8" "8.9"; out = "20190414"; }
···2829 meta = {
30 description = "A formalization of category theory in Coq for personal study and practical work";
31+ maintainers = with lib.maintainers; [ jwiegley ];
32 };
33}
+2-3
pkgs/development/coq-modules/ceres/default.nix
···1{ lib, mkCoqDerivation, coq, version ? null }:
23-with lib;
4mkCoqDerivation {
56 pname = "ceres";
···8 owner = "Lysxia";
910 inherit version;
11- defaultVersion = if versions.range "8.8" "8.16" coq.version then "0.4.0" else null;
12 release."0.4.0".sha256 = "sha256:0zwp3pn6fdj0qdig734zdczrls886al06mxqhhabms0jvvqijmbi";
1314- meta = {
15 description = "Library for serialization to S-expressions";
16 license = licenses.mit;
17 maintainers = with maintainers; [ Zimmi48 ];
···1{ lib, mkCoqDerivation, coq, version ? null }:
203mkCoqDerivation {
45 pname = "ceres";
···7 owner = "Lysxia";
89 inherit version;
10+ defaultVersion = if lib.versions.range "8.8" "8.16" coq.version then "0.4.0" else null;
11 release."0.4.0".sha256 = "sha256:0zwp3pn6fdj0qdig734zdczrls886al06mxqhhabms0jvvqijmbi";
1213+ meta = with lib; {
14 description = "Library for serialization to S-expressions";
15 license = licenses.mit;
16 maintainers = with maintainers; [ Zimmi48 ];
+2-4
pkgs/development/coq-modules/compcert/default.nix
···5, version ? null
6}:
78-with lib;
9-10let compcert = mkCoqDerivation rec {
1112 pname = "compcert";
···15 inherit version;
16 releaseRev = v: "v${v}";
1718- defaultVersion = with versions; switch coq.version [
19 { case = range "8.14" "8.16"; out = "3.11"; }
20 { case = isEq "8.13" ; out = "3.10"; }
21 { case = isEq "8.12" ; out = "3.9"; }
···84}; in
85compcert.overrideAttrs (o:
86 {
87- patches = with versions; switch [ coq.version o.version ] [
88 { cases = [ (range "8.12.2" "8.13.2") "3.8" ];
89 out = [
90 # Support for Coq 8.12.2
···5, version ? null
6}:
7008let compcert = mkCoqDerivation rec {
910 pname = "compcert";
···13 inherit version;
14 releaseRev = v: "v${v}";
1516+ defaultVersion = with lib.versions; lib.switch coq.version [
17 { case = range "8.14" "8.16"; out = "3.11"; }
18 { case = isEq "8.13" ; out = "3.10"; }
19 { case = isEq "8.12" ; out = "3.9"; }
···82}; in
83compcert.overrideAttrs (o:
84 {
85+ patches = with lib.versions; lib.switch [ coq.version o.version ] [
86 { cases = [ (range "8.12.2" "8.13.2") "3.8" ];
87 out = [
88 # Support for Coq 8.12.2
···1{ lib, mkCoqDerivation, coq, version ? null }:
23-with lib; mkCoqDerivation rec {
4 pname = "coq-ext-lib";
5 owner = "coq-ext-lib";
6 inherit version;
7- defaultVersion = with versions; switch coq.coq-version [
8 { case = range "8.11" "8.16"; out = "0.11.7"; }
9 { case = range "8.8" "8.16"; out = "0.11.6"; }
10 { case = range "8.8" "8.14"; out = "0.11.4"; }
···3031 meta = {
32 description = "A collection of theories and plugins that may be useful in other Coq developments";
33- maintainers = with maintainers; [ jwiegley ptival ];
34 };
35}
···1{ lib, mkCoqDerivation, coq, version ? null }:
23+mkCoqDerivation rec {
4 pname = "coq-ext-lib";
5 owner = "coq-ext-lib";
6 inherit version;
7+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
8 { case = range "8.11" "8.16"; out = "0.11.7"; }
9 { case = range "8.8" "8.16"; out = "0.11.6"; }
10 { case = range "8.8" "8.14"; out = "0.11.4"; }
···3031 meta = {
32 description = "A collection of theories and plugins that may be useful in other Coq developments";
33+ maintainers = with lib.maintainers; [ jwiegley ptival ];
34 };
35}
···1{ lib, mkCoqDerivation, coq, equations, LibHyps, version ? null }:
2-with lib;
34(mkCoqDerivation {
5 pname = "hydra-battles";
···11 releaseRev = (v: "v${v}");
1213 inherit version;
14- defaultVersion = with versions; switch coq.coq-version [
15 { case = range "8.13" "8.16"; out = "0.6"; }
16 { case = range "8.11" "8.12"; out = "0.4"; }
17 ] null;
1819 useDune = true;
2021- meta = {
22 description = "Exploration of some properties of Kirby and Paris' hydra battles, with the help of Coq";
23 longDescription = ''
24 An exploration of some properties of Kirby and Paris' hydra
···33 };
34}).overrideAttrs(o:
35 let inherit (o) version; in {
36- propagatedBuildInputs = [ equations ] ++ optional (versions.isGe "0.6" version || version == "dev") LibHyps;
37 })
···1{ lib, mkCoqDerivation, coq, equations, LibHyps, version ? null }:
023(mkCoqDerivation {
4 pname = "hydra-battles";
···10 releaseRev = (v: "v${v}");
1112 inherit version;
13+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
14 { case = range "8.13" "8.16"; out = "0.6"; }
15 { case = range "8.11" "8.12"; out = "0.4"; }
16 ] null;
1718 useDune = true;
1920+ meta = with lib; {
21 description = "Exploration of some properties of Kirby and Paris' hydra battles, with the help of Coq";
22 longDescription = ''
23 An exploration of some properties of Kirby and Paris' hydra
···32 };
33}).overrideAttrs(o:
34 let inherit (o) version; in {
35+ propagatedBuildInputs = [ equations ] ++ lib.optional (lib.versions.isGe "0.6" version || version == "dev") LibHyps;
36 })
+3-3
pkgs/development/coq-modules/iris/default.nix
···1{ lib, mkCoqDerivation, coq, stdpp, version ? null }:
23-with lib; mkCoqDerivation rec {
4 pname = "iris";
5 domain = "gitlab.mpi-sws.org";
6 owner = "iris";
7 inherit version;
8- defaultVersion = with versions; switch coq.coq-version [
9 { case = range "8.13" "8.16"; out = "4.0.0"; }
10 { case = range "8.12" "8.14"; out = "3.5.0"; }
11 { case = range "8.11" "8.13"; out = "3.4.0"; }
···26 fi
27 '';
2829- meta = {
30 description = "The Coq development of the Iris Project";
31 license = licenses.bsd3;
32 maintainers = [ maintainers.vbgl ];
···1{ lib, mkCoqDerivation, coq, stdpp, version ? null }:
23+mkCoqDerivation rec {
4 pname = "iris";
5 domain = "gitlab.mpi-sws.org";
6 owner = "iris";
7 inherit version;
8+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
9 { case = range "8.13" "8.16"; out = "4.0.0"; }
10 { case = range "8.12" "8.14"; out = "3.5.0"; }
11 { case = range "8.11" "8.13"; out = "3.4.0"; }
···26 fi
27 '';
2829+ meta = with lib; {
30 description = "The Coq development of the Iris Project";
31 license = licenses.bsd3;
32 maintainers = [ maintainers.vbgl ];
+2-3
pkgs/development/coq-modules/itauto/default.nix
···1{ lib, mkCoqDerivation, coq, version ? null }:
2-with lib;
34mkCoqDerivation rec {
5 pname = "itauto";
···11 release."8.14.0".sha256 = "sha256:1k6pqhv4dwpkwg81f2rlfg40wh070ks1gy9r0ravm2zhsbxqcfc9";
12 release."8.13+no".sha256 = "sha256-gXoxtLcHPoyjJkt7WqvzfCMCQlh6kL2KtCGe3N6RC/A=";
13 inherit version;
14- defaultVersion = with versions; switch coq.coq-version [
15 { case = isEq "8.16"; out = "8.16.0"; }
16 { case = isEq "8.15"; out = "8.15.0"; }
17 { case = isEq "8.14"; out = "8.14.0"; }
···22 nativeBuildInputs = (with coq.ocamlPackages; [ ocamlbuild ]);
23 enableParallelBuilding = false;
2425- meta = {
26 description = "A reflexive SAT solver parameterised by a leaf tactic and Nelson-Oppen support";
27 maintainers = with maintainers; [ siraben ];
28 license = licenses.gpl3Plus;
···1{ lib, mkCoqDerivation, coq, version ? null }:
023mkCoqDerivation rec {
4 pname = "itauto";
···10 release."8.14.0".sha256 = "sha256:1k6pqhv4dwpkwg81f2rlfg40wh070ks1gy9r0ravm2zhsbxqcfc9";
11 release."8.13+no".sha256 = "sha256-gXoxtLcHPoyjJkt7WqvzfCMCQlh6kL2KtCGe3N6RC/A=";
12 inherit version;
13+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
14 { case = isEq "8.16"; out = "8.16.0"; }
15 { case = isEq "8.15"; out = "8.15.0"; }
16 { case = isEq "8.14"; out = "8.14.0"; }
···21 nativeBuildInputs = (with coq.ocamlPackages; [ ocamlbuild ]);
22 enableParallelBuilding = false;
2324+ meta = with lib; {
25 description = "A reflexive SAT solver parameterised by a leaf tactic and Nelson-Oppen support";
26 maintainers = with maintainers; [ siraben ];
27 license = licenses.gpl3Plus;
+3-3
pkgs/development/coq-modules/ltac2/default.nix
···1{ lib, mkCoqDerivation, which, coq, version ? null }:
23-with lib; mkCoqDerivation {
4 pname = "ltac2";
5 owner = "coq";
6 inherit version;
7- defaultVersion = with versions; switch coq.coq-version [
8 { case = "8.10"; out = "0.3"; }
9 { case = "8.9"; out = "0.2"; }
10 { case = "8.8"; out = "0.1"; }
···1920 mlPlugin = true;
2122- meta = {
23 description = "A robust and expressive tactic language for Coq";
24 maintainers = [ maintainers.vbgl ];
25 license = licenses.lgpl21;
···1{ lib, mkCoqDerivation, which, coq, version ? null }:
23+mkCoqDerivation {
4 pname = "ltac2";
5 owner = "coq";
6 inherit version;
7+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
8 { case = "8.10"; out = "0.3"; }
9 { case = "8.9"; out = "0.2"; }
10 { case = "8.8"; out = "0.1"; }
···1920 mlPlugin = true;
2122+ meta = with lib; {
23 description = "A robust and expressive tactic language for Coq";
24 maintainers = [ maintainers.vbgl ];
25 license = licenses.lgpl21;
···18 repo = "math-comp";
19 owner = "math-comp";
20 withDoc = single && (args.withDoc or false);
21- defaultVersion = with versions; switch coq.coq-version [
22 { case = range "8.14" "8.16"; out = "1.15.0"; }
23 { case = range "8.11" "8.15"; out = "1.14.0"; }
24 { case = range "8.11" "8.15"; out = "1.13.0"; }
···5051 mathcomp_ = package: let
52 mathcomp-deps = if package == "single" then []
53- else map mathcomp_ (head (splitList (pred.equal package) packages));
54 pkgpath = if package == "single" then "mathcomp" else "mathcomp/${package}";
55 pname = if package == "single" then "mathcomp" else "mathcomp-${package}";
56 pkgallMake = ''
···18 repo = "math-comp";
19 owner = "math-comp";
20 withDoc = single && (args.withDoc or false);
21+ defaultVersion = with versions; lib.switch coq.coq-version [
22 { case = range "8.14" "8.16"; out = "1.15.0"; }
23 { case = range "8.11" "8.15"; out = "1.14.0"; }
24 { case = range "8.11" "8.15"; out = "1.13.0"; }
···5051 mathcomp_ = package: let
52 mathcomp-deps = if package == "single" then []
53+ else map mathcomp_ (head (splitList (lib.pred.equal package) packages));
54 pkgpath = if package == "single" then "mathcomp" else "mathcomp/${package}";
55 pname = if package == "single" then "mathcomp" else "mathcomp-${package}";
56 pkgallMake = ''
+2-2
pkgs/development/coq-modules/metacoq/default.nix
···5let
6 repo = "metacoq";
7 owner = "MetaCoq";
8- defaultVersion = with versions; switch coq.coq-version [
9 { case = "8.11"; out = "1.0-beta2-8.11"; }
10 { case = "8.12"; out = "1.0-beta2-8.12"; }
11 # Do not provide 8.13 because it does not compile with equations 1.3 provided by default (only 1.2.3)
···3435 metacoq_ = package: let
36 metacoq-deps = if package == "single" then []
37- else map metacoq_ (head (splitList (pred.equal package) packages));
38 pkgpath = if package == "single" then "./" else "./${package}";
39 pname = if package == "all" then "metacoq" else "metacoq-${package}";
40 pkgallMake = ''
···5let
6 repo = "metacoq";
7 owner = "MetaCoq";
8+ defaultVersion = with versions; lib.switch coq.coq-version [
9 { case = "8.11"; out = "1.0-beta2-8.11"; }
10 { case = "8.12"; out = "1.0-beta2-8.12"; }
11 # Do not provide 8.13 because it does not compile with equations 1.3 provided by default (only 1.2.3)
···3435 metacoq_ = package: let
36 metacoq-deps = if package == "single" then []
37+ else map metacoq_ (head (splitList (lib.pred.equal package) packages));
38 pkgpath = if package == "single" then "./" else "./${package}";
39 pname = if package == "all" then "metacoq" else "metacoq-${package}";
40 pkgallMake = ''
+3-3
pkgs/development/coq-modules/metalib/default.nix
···1{ lib, mkCoqDerivation, coq, version ? null }:
23-with lib; mkCoqDerivation {
4 pname = "metalib";
5 owner = "plclub";
6 inherit version;
7- defaultVersion = with versions; switch coq.coq-version [
8 { case = range "8.14" "8.16"; out = "8.15"; }
9 { case = range "8.10" "8.13"; out = "8.10"; }
10 ] null;
···1415 sourceRoot = "source/Metalib";
1617- meta = {
18 license = licenses.mit;
19 maintainers = [ maintainers.jwiegley ];
20 };
···1{ lib, mkCoqDerivation, coq, version ? null }:
23+mkCoqDerivation {
4 pname = "metalib";
5 owner = "plclub";
6 inherit version;
7+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
8 { case = range "8.14" "8.16"; out = "8.15"; }
9 { case = range "8.10" "8.13"; out = "8.10"; }
10 ] null;
···1415 sourceRoot = "source/Metalib";
1617+ meta = with lib; {
18 license = licenses.mit;
19 maintainers = [ maintainers.jwiegley ];
20 };
···1{ lib, mkCoqDerivation, coq, version ? null }:
2-with lib;
34mkCoqDerivation rec {
5 pname = "semantics";
···15 release."8.6.0".sha256 = "sha256-GltkGQ3tJqUPAbdDkqqvKLLhMOap50XvGaCkjshiNdY=";
1617 inherit version;
18- defaultVersion = with versions; switch coq.coq-version [
19 { case = range "8.10" "8.16"; out = "8.14.0"; }
20 { case = "8.9"; out = "8.9.0"; }
21 { case = "8.8"; out = "8.8.0"; }
···34 done
35 '';
3637- meta = {
38 description = "A survey of programming language semantics styles in Coq";
39 longDescription = ''
40 A survey of semantics styles in Coq, from natural semantics through
···1{ lib, mkCoqDerivation, coq, version ? null }:
023mkCoqDerivation rec {
4 pname = "semantics";
···14 release."8.6.0".sha256 = "sha256-GltkGQ3tJqUPAbdDkqqvKLLhMOap50XvGaCkjshiNdY=";
1516 inherit version;
17+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
18 { case = range "8.10" "8.16"; out = "8.14.0"; }
19 { case = "8.9"; out = "8.9.0"; }
20 { case = "8.8"; out = "8.8.0"; }
···33 done
34 '';
3536+ meta = with lib; {
37 description = "A survey of programming language semantics styles in Coq";
38 longDescription = ''
39 A survey of semantics styles in Coq, from natural semantics through
+1-1
pkgs/development/coq-modules/serapi/default.nix
···17 inherit version release;
1819 defaultVersion = with versions;
20- switch coq.version [
21 { case = isEq "8.16"; out = "8.16.0+0.16.0"; }
22 { case = isEq "8.15"; out = "8.15.0+0.15.0"; }
23 { case = isEq "8.14"; out = "8.14.0+0.14.0"; }
···17 inherit version release;
1819 defaultVersion = with versions;
20+ lib.switch coq.version [
21 { case = isEq "8.16"; out = "8.16.0+0.16.0"; }
22 { case = isEq "8.15"; out = "8.15.0+0.15.0"; }
23 { case = isEq "8.14"; out = "8.14.0+0.14.0"; }