treewide: remove global with lib; statements in pkgs/coq-modules

+209 -242
+2 -2
pkgs/development/coq-modules/Cheerios/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, StructTact, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "cheerios"; 5 5 owner = "uwplse"; 6 6 inherit version; 7 - defaultVersion = if versions.range "8.6" "8.16" coq.version then "20200201" else null; 7 + defaultVersion = if lib.versions.range "8.6" "8.16" coq.version then "20200201" else null; 8 8 release."20200201".rev = "9c7f66e57b91f706d70afa8ed99d64ed98ab367d"; 9 9 release."20200201".sha256 = "1h55s6lk47bk0lv5ralh81z55h799jbl9mhizmqwqzy57y8wqgs1"; 10 10
+3 -3
pkgs/development/coq-modules/CoLoR/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, bignums, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "color"; 5 5 owner = "fblanqui"; 6 6 inherit version; 7 - defaultVersion = with versions; switch coq.version [ 7 + defaultVersion = with lib.versions; lib.switch coq.version [ 8 8 {case = range "8.12" "8.16"; out = "1.8.2"; } 9 9 {case = range "8.10" "8.11"; out = "1.7.0"; } 10 10 {case = range "8.8" "8.9"; out = "1.6.0"; } ··· 26 26 meta = { 27 27 homepage = "https://github.com/fblanqui/color"; 28 28 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."; 29 - maintainers = with maintainers; [ jpas jwiegley ]; 29 + maintainers = with lib.maintainers; [ jpas jwiegley ]; 30 30 }; 31 31 }
+3 -3
pkgs/development/coq-modules/HoTT/default.nix
··· 1 1 { lib, mkCoqDerivation, autoconf, automake, coq, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "HoTT"; 5 5 repo = "Coq-HoTT"; 6 6 owner = "HoTT"; 7 7 inherit version; 8 - defaultVersion = with versions; switch coq.coq-version [ 8 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 9 9 { case = range "8.14" "8.16"; out = coq.coq-version; } 10 10 ] null; 11 11 releaseRev = v: "V${v}"; ··· 20 20 meta = { 21 21 homepage = "http://homotopytypetheory.org/"; 22 22 description = "Homotopy type theory"; 23 - maintainers = with maintainers; [ siddharthist ]; 23 + maintainers = with lib.maintainers; [ siddharthist ]; 24 24 }; 25 25 }
+3 -3
pkgs/development/coq-modules/ITree/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null , paco, coq-ext-lib }: 2 2 3 - with lib; mkCoqDerivation rec { 3 + mkCoqDerivation rec { 4 4 pname = "InteractionTrees"; 5 5 owner = "DeepSpec"; 6 6 inherit version; 7 - defaultVersion = with versions; switch coq.version [ 7 + defaultVersion = with lib.versions; lib.switch coq.version [ 8 8 { case = range "8.10" "8.16"; out = "4.0.0"; } 9 9 ] null; 10 10 release."4.0.0".sha256 = "0h5rhndl8syc24hxq1gch86kj7mpmgr89bxp2hmf28fd7028ijsm"; ··· 12 12 propagatedBuildInputs = [ coq-ext-lib paco ]; 13 13 meta = { 14 14 description = "A Library for Representing Recursive and Impure Programs in Coq"; 15 - maintainers = with maintainers; [ larsr ]; 15 + maintainers = with lib.maintainers; [ larsr ]; 16 16 }; 17 17 }
+2 -3
pkgs/development/coq-modules/LibHyps/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; 4 3 mkCoqDerivation { 5 4 pname = "LibHyps"; 6 5 owner = "Matafou"; 7 6 inherit version; 8 - defaultVersion = if (versions.range "8.11" "8.16") coq.version then "2.0.4.1" else null; 7 + defaultVersion = if (lib.versions.range "8.11" "8.16") coq.version then "2.0.4.1" else null; 9 8 release = { 10 9 "2.0.4.1".sha256 = "09p89701zhrfdmqlpxw3mziw8yylj1w1skb4b0xpbdwd1vsn4k3h"; 11 10 }; ··· 16 15 17 16 meta = { 18 17 description = "Hypotheses manipulation library"; 19 - license = licenses.mit; 18 + license = lib.licenses.mit; 20 19 }; 21 20 }
+2 -2
pkgs/development/coq-modules/StructTact/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "StructTact"; 5 5 owner = "uwplse"; 6 6 inherit version; 7 - defaultVersion = with versions; switch coq.coq-version [ 7 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 8 8 { case = range "8.6" "8.16"; out = "20210328"; } 9 9 { case = range "8.5" "8.13"; out = "20181102"; } 10 10 ] null;
+2 -4
pkgs/development/coq-modules/VST/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, compcert, ITree, version ? null }: 2 2 3 - with lib; 4 - 5 3 # A few modules that are not built and installed by default 6 4 # but that may be useful to some users. 7 5 # They depend on ITree. ··· 11 9 "powerlater.v" 12 10 ] 13 11 # floyd/printf.v is broken in VST 2.9 14 - ++ optional (!versions.isGe "8.13" coq.coq-version) "printf.v" 12 + ++ lib.optional (!lib.versions.isGe "8.13" coq.coq-version) "printf.v" 15 13 ++ [ 16 14 "quickprogram.v" 17 15 ]; ··· 24 22 owner = "PrincetonUniversity"; 25 23 repo = "VST"; 26 24 inherit version; 27 - defaultVersion = with versions; switch coq.coq-version [ 25 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 28 26 { case = range "8.15" "8.16"; out = "2.11.1"; } 29 27 { case = range "8.14" "8.16"; out = "2.10"; } 30 28 { case = range "8.13" "8.15"; out = "2.9"; }
+2 -2
pkgs/development/coq-modules/Velisarios/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "Velisarios"; 5 5 owner = "vrahli"; 6 6 inherit version; 7 - defaultVersion = if versions.range "8.6" "8.8" coq.coq-version then "20180221" else null; 7 + defaultVersion = if lib.versions.range "8.6" "8.8" coq.coq-version then "20180221" else null; 8 8 9 9 release."20180221".rev = "e1eee1f10d5d46331a560bd8565ac101229d0d6b"; 10 10 release."20180221".sha256 = "0l9885nxy0n955fj1gnijlxl55lyxiv9yjfmz8hmfrn9hl8vv1m2";
+2 -2
pkgs/development/coq-modules/Verdi/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, Cheerios, InfSeqExt, ssreflect, version ? null }: 2 2 3 3 4 - with lib; mkCoqDerivation { 4 + mkCoqDerivation { 5 5 pname = "verdi"; 6 6 owner = "uwplse"; 7 7 inherit version; 8 - defaultVersion = with versions; switch coq.coq-version [ 8 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 9 9 { case = range "8.7" "8.16"; out = "20211026"; } 10 10 { case = range "8.7" "8.14"; out = "20210524"; } 11 11 { case = range "8.7" "8.13"; out = "20200131"; }
+2 -3
pkgs/development/coq-modules/aac-tactics/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation { 5 4 pname = "aac-tactics"; ··· 21 20 release."8.5.0".sha256 = "sha256-7yNxJn6CH5xS5w/zsXfcZYORa6e5/qS9v8PUq2o02h4="; 22 21 23 22 inherit version; 24 - defaultVersion = with versions; switch coq.coq-version [ 23 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 25 24 { case = "8.16"; out = "8.16.0"; } 26 25 { case = "8.15"; out = "8.15.1"; } 27 26 { case = "8.14"; out = "8.14.1"; } ··· 37 36 38 37 mlPlugin = true; 39 38 40 - meta = { 39 + meta = with lib; { 41 40 description = "Coq plugin providing tactics for rewriting universally quantified equations"; 42 41 longDescription = '' 43 42 This Coq plugin provides tactics for rewriting universally quantified
+2 -3
pkgs/development/coq-modules/addition-chains/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, mathcomp-ssreflect, mathcomp-algebra, mathcomp-fingroup, paramcoq 2 2 , version ? null }: 3 - with lib; 4 3 5 4 mkCoqDerivation { 6 5 pname = "addition-chains"; ··· 12 11 releaseRev = (v: "v${v}"); 13 12 14 13 inherit version; 15 - defaultVersion = with versions; switch coq.coq-version [ 14 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 16 15 { case = range "8.13" "8.16"; out = "0.6"; } 17 16 { case = range "8.11" "8.12"; out = "0.4"; } 18 17 ] null; ··· 21 20 22 21 useDune = true; 23 22 24 - meta = { 23 + meta = with lib; { 25 24 description = "Exponentiation algorithms following addition chains"; 26 25 longDescription = '' 27 26 Addition chains are algorithms for computations of the p-th
+2 -3
pkgs/development/coq-modules/autosubst/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, mathcomp-ssreflect, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation { 5 4 pname = "autosubst"; ··· 8 7 release."1.7".sha256 = "sha256-qoyteQ5W2Noxf12uACOVeHhPLvgmTzrvEo6Ts+FKTGI="; 9 8 10 9 inherit version; 11 - defaultVersion = with versions; switch coq.coq-version [ 10 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 12 11 { case = range "8.10" "8.16"; out = "1.7"; } 13 12 ] null; 14 13 15 14 propagatedBuildInputs = [ mathcomp-ssreflect ]; 16 15 17 - meta = { 16 + meta = with lib; { 18 17 homepage = "https://www.ps.uni-saarland.de/autosubst/"; 19 18 description = "Automation for de Bruijn syntax and substitution in Coq"; 20 19 maintainers = with maintainers; [ siraben jwiegley ];
+3 -3
pkgs/development/coq-modules/bignums/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "bignums"; 5 5 owner = "coq"; 6 6 displayVersion = { bignums = ""; }; 7 7 inherit version; 8 - defaultVersion = if versions.isGe "8.6" coq.coq-version 8 + defaultVersion = if lib.versions.isGe "8.6" coq.coq-version 9 9 then "${coq.coq-version}.0" else null; 10 10 11 11 release."8.17.0".sha256 = "sha256-MXYjqN86+3O4hT2ql62U83T5H03E/8ysH8erpvC/oyw="; ··· 25 25 26 26 mlPlugin = true; 27 27 28 - meta = { license = licenses.lgpl2; }; 28 + meta = { license = lib.licenses.lgpl2; }; 29 29 }
+3 -3
pkgs/development/coq-modules/category-theory/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, ssreflect, equations, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 5 5 pname = "category-theory"; 6 6 owner = "jwiegley"; ··· 16 16 release."20180709".sha256 = "0f2nr8dgn1ab7hr7jrdmr1zla9g9h8216q4yf4wnff9qkln8sbbs"; 17 17 18 18 inherit version; 19 - defaultVersion = with versions; switch coq.coq-version [ 19 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 20 20 { case = range "8.14" "8.16"; out = "1.0.0"; } 21 21 { case = range "8.10" "8.15"; out = "20211213"; } 22 22 { case = range "8.8" "8.9"; out = "20190414"; } ··· 28 28 29 29 meta = { 30 30 description = "A formalization of category theory in Coq for personal study and practical work"; 31 - maintainers = with maintainers; [ jwiegley ]; 31 + maintainers = with lib.maintainers; [ jwiegley ]; 32 32 }; 33 33 }
+2 -3
pkgs/development/coq-modules/ceres/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; 4 3 mkCoqDerivation { 5 4 6 5 pname = "ceres"; ··· 8 7 owner = "Lysxia"; 9 8 10 9 inherit version; 11 - defaultVersion = if versions.range "8.8" "8.16" coq.version then "0.4.0" else null; 10 + defaultVersion = if lib.versions.range "8.8" "8.16" coq.version then "0.4.0" else null; 12 11 release."0.4.0".sha256 = "sha256:0zwp3pn6fdj0qdig734zdczrls886al06mxqhhabms0jvvqijmbi"; 13 12 14 - meta = { 13 + meta = with lib; { 15 14 description = "Library for serialization to S-expressions"; 16 15 license = licenses.mit; 17 16 maintainers = with maintainers; [ Zimmi48 ];
+2 -4
pkgs/development/coq-modules/compcert/default.nix
··· 5 5 , version ? null 6 6 }: 7 7 8 - with lib; 9 - 10 8 let compcert = mkCoqDerivation rec { 11 9 12 10 pname = "compcert"; ··· 15 13 inherit version; 16 14 releaseRev = v: "v${v}"; 17 15 18 - defaultVersion = with versions; switch coq.version [ 16 + defaultVersion = with lib.versions; lib.switch coq.version [ 19 17 { case = range "8.14" "8.16"; out = "3.11"; } 20 18 { case = isEq "8.13" ; out = "3.10"; } 21 19 { case = isEq "8.12" ; out = "3.9"; } ··· 84 82 }; in 85 83 compcert.overrideAttrs (o: 86 84 { 87 - patches = with versions; switch [ coq.version o.version ] [ 85 + patches = with lib.versions; lib.switch [ coq.version o.version ] [ 88 86 { cases = [ (range "8.12.2" "8.13.2") "3.8" ]; 89 87 out = [ 90 88 # Support for Coq 8.12.2
+3 -3
pkgs/development/coq-modules/contribs/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, callPackage }: 2 2 3 - with lib; let mkContrib = pname: coqs: param: 3 + let mkContrib = pname: coqs: param: 4 4 let contribVersion = {version ? null}: mkCoqDerivation ({ 5 5 inherit pname version; 6 6 owner = "coq-contribs"; 7 7 mlPlugin = true; 8 - } // optionalAttrs (builtins.elem coq.coq-version coqs) ({ 8 + } // lib.optionalAttrs (builtins.elem coq.coq-version coqs) ({ 9 9 defaultVersion = param.version; 10 10 release = { "${param.version}" = { inherit (param) rev sha256; }; }; 11 11 } // (removeAttrs param [ "version" "rev" "sha256" ])) 12 12 ); in 13 - makeOverridable contribVersion {} ; in 13 + lib.makeOverridable contribVersion {} ; in 14 14 { 15 15 aac-tactics = mkContrib "aac-tactics" [ "8.7" "8.8" ] { 16 16 "8.7" = {
+3 -3
pkgs/development/coq-modules/coq-bits/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, mathcomp-algebra, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "coq-bits"; 5 5 repo = "bits"; 6 6 inherit version; 7 - defaultVersion = with versions; switch coq.coq-version [ 7 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 8 8 { case = range "8.10" "8.16"; out = "1.1.0"; } 9 9 { case = range "8.7" "8.15"; out = "1.0.0"; } 10 10 ] null; ··· 14 14 15 15 propagatedBuildInputs = [ mathcomp-algebra ]; 16 16 17 - meta = { 17 + meta = with lib; { 18 18 description = "A formalization of bitset operations in Coq"; 19 19 license = licenses.asl20; 20 20 maintainers = with maintainers; [ ptival ];
+3 -3
pkgs/development/coq-modules/coq-ext-lib/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; mkCoqDerivation rec { 3 + mkCoqDerivation rec { 4 4 pname = "coq-ext-lib"; 5 5 owner = "coq-ext-lib"; 6 6 inherit version; 7 - defaultVersion = with versions; switch coq.coq-version [ 7 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 8 8 { case = range "8.11" "8.16"; out = "0.11.7"; } 9 9 { case = range "8.8" "8.16"; out = "0.11.6"; } 10 10 { case = range "8.8" "8.14"; out = "0.11.4"; } ··· 30 30 31 31 meta = { 32 32 description = "A collection of theories and plugins that may be useful in other Coq developments"; 33 - maintainers = with maintainers; [ jwiegley ptival ]; 33 + maintainers = with lib.maintainers; [ jwiegley ptival ]; 34 34 }; 35 35 }
+3 -3
pkgs/development/coq-modules/coq-haskell/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, ssreflect, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 5 5 pname = "coq-haskell"; 6 6 owner = "jwiegley"; 7 7 inherit version; 8 - defaultVersion = if versions.range "8.5" "8.8" coq.coq-version then "20171215" else null; 8 + defaultVersion = if lib.versions.range "8.5" "8.8" coq.coq-version then "20171215" else null; 9 9 release."20171215".rev = "e2cf8b270c2efa3b56fab1ef6acc376c2c3de968"; 10 10 release."20171215".sha256 = "09dq1vvshhlhgjccrhqgbhnq2hrys15xryfszqq11rzpgvl2zgdv"; 11 11 ··· 16 16 17 17 meta = { 18 18 description = "A library for formalizing Haskell types and functions in Coq"; 19 - maintainers = with maintainers; [ jwiegley ]; 19 + maintainers = with lib.maintainers; [ jwiegley ]; 20 20 }; 21 21 }
+3 -3
pkgs/development/coq-modules/coq-record-update/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; mkCoqDerivation rec { 3 + mkCoqDerivation rec { 4 4 pname = "coq-record-update"; 5 5 owner = "tchajed"; 6 6 inherit version; 7 - defaultVersion = with versions; switch coq.coq-version [ 7 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 8 8 { case = range "8.10" "8.16"; out = "0.3.1"; } 9 9 ] null; 10 10 release."0.3.1".sha256 = "sha256-DyGxO2tqmYZZluXN6Oy5Tw6fuLMyuyxonj8CCToWKkk="; ··· 13 13 buildFlags = [ "NO_TEST=1" ]; 14 14 meta = { 15 15 description = "Library to create Coq record update functions"; 16 - maintainers = with maintainers; [ ineol ]; 16 + maintainers = with lib.maintainers; [ ineol ]; 17 17 }; 18 18 }
+3 -5
pkgs/development/coq-modules/coqeal/default.nix
··· 2 2 mathcomp-real-closed, 3 3 lib, version ? null }: 4 4 5 - with lib; 6 - 7 5 (mkCoqDerivation { 8 6 9 7 pname = "CoqEAL"; 10 8 11 9 inherit version; 12 - defaultVersion = with versions; switch [ coq.version mathcomp.version ] [ 10 + defaultVersion = with lib.versions; lib.switch [ coq.version mathcomp.version ] [ 13 11 { cases = [ (range "8.13" "8.16") (isGe "1.13.0") ]; out = "1.1.1"; } 14 12 { cases = [ (range "8.10" "8.15") (isGe "1.12.0") ]; out = "1.1.0"; } 15 13 { cases = [ (isGe "8.10") (range "1.11.0" "1.12.0") ]; out = "1.0.5"; } ··· 28 26 29 27 meta = { 30 28 description = "CoqEAL - The Coq Effective Algebra Library"; 31 - license = licenses.mit; 29 + license = lib.licenses.mit; 32 30 }; 33 31 }).overrideAttrs (o: { 34 32 propagatedBuildInputs = o.propagatedBuildInputs 35 - ++ optional (versions.isGe "1.1" o.version || o.version == "dev") mathcomp-real-closed; 33 + ++ lib.optional (lib.versions.isGe "1.1" o.version || o.version == "dev") mathcomp-real-closed; 36 34 })
+3 -3
pkgs/development/coq-modules/coqhammer/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 inherit version; 5 5 pname = "coqhammer"; 6 6 owner = "lukaszcz"; 7 - defaultVersion = with versions; switch coq.coq-version [ 7 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 8 8 { case = "8.15"; out = "1.3.2-coq8.15"; } 9 9 { case = "8.14"; out = "1.3.2-coq8.14"; } 10 10 { case = "8.13"; out = "1.3.2-coq8.13"; } ··· 57 57 58 58 mlPlugin = true; 59 59 60 - meta = { 60 + meta = with lib; { 61 61 homepage = "http://cl-informatik.uibk.ac.at/cek/coqhammer/"; 62 62 description = "Automation for Dependent Type Theory"; 63 63 license = licenses.lgpl21;
+2 -2
pkgs/development/coq-modules/coqide/default.nix
··· 8 8 , coq 9 9 , version ? null }: 10 10 11 - with lib; mkCoqDerivation rec { 11 + mkCoqDerivation rec { 12 12 pname = "coqide"; 13 13 inherit version; 14 14 15 15 inherit (coq) src; 16 16 release."${coq.version}" = {}; 17 17 18 - defaultVersion = if versions.isGe "8.14" coq.version then coq.version else null; 18 + defaultVersion = if lib.versions.isGe "8.14" coq.version then coq.version else null; 19 19 20 20 preConfigure = '' 21 21 patchShebangs dev/tools/
+2 -2
pkgs/development/coq-modules/coqprime/default.nix
··· 1 1 { which, lib, mkCoqDerivation, coq, bignums, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 5 5 pname = "coqprime"; 6 6 owner = "thery"; 7 7 inherit version; 8 - defaultVersion = with versions; switch coq.coq-version [ 8 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 9 9 { case = range "8.12" "8.16"; out = "8.15"; } 10 10 { case = range "8.10" "8.11"; out = "8.10"; } 11 11 { case = range "8.8" "8.9"; out = "8.8"; }
+2 -4
pkgs/development/coq-modules/coqtail-math/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; 4 - 5 3 mkCoqDerivation { 6 4 pname = "coqtail-math"; 7 5 owner = "coq-community"; 8 6 inherit version; 9 - defaultVersion = with versions; switch coq.coq-version [ 7 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 10 8 { case = range "8.11" "8.15"; out = "8.14"; } 11 9 { case = range "8.11" "8.13"; out = "20201124"; } 12 10 ] null; ··· 15 13 release."20201124".rev = "5c22c3d7dcd8cf4c47cf84a281780f5915488e9e"; 16 14 release."20201124".sha256 = "sha256-wd+Lh7dpAD4zfpyKuztDmSFEZo5ZiFrR8ti2jUCVvoQ="; 17 15 mlPlugin = true; 18 - meta = { 16 + meta = with lib; { 19 17 license = licenses.lgpl3Only; 20 18 maintainers = [ maintainers.siraben ]; 21 19 };
+3 -3
pkgs/development/coq-modules/coquelicot/default.nix
··· 1 1 { lib, mkCoqDerivation, autoconf, 2 2 coq, ssreflect, version ? null }: 3 3 4 - with lib; mkCoqDerivation { 4 + mkCoqDerivation { 5 5 pname = "coquelicot"; 6 6 owner = "coquelicot"; 7 7 domain = "gitlab.inria.fr"; 8 8 inherit version; 9 - defaultVersion = with versions; switch coq.coq-version [ 9 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 10 10 { case = range "8.8" "8.16"; out = "3.2.0"; } 11 11 { case = range "8.8" "8.13"; out = "3.1.0"; } 12 12 { case = range "8.5" "8.9"; out = "3.0.2"; } ··· 20 20 propagatedBuildInputs = [ ssreflect ]; 21 21 useMelquiondRemake.logpath = "Coquelicot"; 22 22 23 - meta = { 23 + meta = with lib; { 24 24 homepage = "http://coquelicot.saclay.inria.fr/"; 25 25 description = "A Coq library for Reals"; 26 26 license = licenses.lgpl3;
+3 -3
pkgs/development/coq-modules/corn/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, bignums, math-classes, version ? null }: 2 2 3 - with lib; mkCoqDerivation rec { 3 + mkCoqDerivation rec { 4 4 pname = "corn"; 5 5 inherit version; 6 - defaultVersion = with versions; switch coq.coq-version [ 6 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 7 7 { case = "8.6"; out = "8.8.1"; } 8 8 { case = (range "8.11" "8.16"); out = "8.16.0"; } 9 9 { case = (range "8.7" "8.15"); out = "8.13.0"; } ··· 21 21 22 22 propagatedBuildInputs = [ bignums math-classes ]; 23 23 24 - meta = { 24 + meta = with lib; { 25 25 homepage = "http://c-corn.github.io/"; 26 26 license = licenses.gpl2; 27 27 description = "A Coq library for constructive analysis";
+2 -3
pkgs/development/coq-modules/deriving/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null 2 2 , ssreflect 3 3 }: 4 - with lib; 5 4 6 5 mkCoqDerivation { 7 6 pname = "deriving"; 8 7 owner = "arthuraa"; 9 8 10 9 inherit version; 11 - defaultVersion = with versions; switch coq.coq-version [ 10 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 12 11 { case = range "8.11" "8.16"; out = "0.1.0"; } 13 12 ] null; 14 13 ··· 20 19 21 20 mlPlugin = true; 22 21 23 - meta = { 22 + meta = with lib; { 24 23 description = "Generic instances of MathComp classes"; 25 24 license = licenses.mit; 26 25 maintainers = [ maintainers.vbgl ];
+5 -6
pkgs/development/coq-modules/dpdgraph/default.nix
··· 1 1 { lib, mkCoqDerivation, autoreconfHook, coq, version ? null }: 2 2 3 - with lib; 4 - let hasWarning = versionAtLeast coq.ocamlPackages.ocaml.version "4.08"; in 3 + let hasWarning = lib.versionAtLeast coq.ocamlPackages.ocaml.version "4.08"; in 5 4 6 5 mkCoqDerivation { 7 6 pname = "dpdgraph"; 8 7 owner = "Karmaki"; 9 8 repo = "coq-dpdgraph"; 10 9 inherit version; 11 - defaultVersion = switch coq.coq-version [ 10 + defaultVersion = lib.switch coq.coq-version [ 12 11 { case = "8.16"; out = "1.0+8.16"; } 13 12 { case = "8.15"; out = "1.0+8.15"; } 14 13 { case = "8.14"; out = "1.0+8.14"; } ··· 47 46 48 47 # dpd_compute.ml uses deprecated Pervasives.compare 49 48 # Versions prior to 0.6.5 do not have the WARN_ERR build flag 50 - preConfigure = optionalString hasWarning '' 49 + preConfigure = lib.optionalString hasWarning '' 51 50 substituteInPlace Makefile.in --replace "-warn-error +a " "" 52 51 ''; 53 52 54 - buildFlags = optional hasWarning "WARN_ERR="; 53 + buildFlags = lib.optional hasWarning "WARN_ERR="; 55 54 56 55 preInstall = '' 57 56 mkdir -p $out/bin ··· 59 58 60 59 extraInstallFlags = [ "BINDIR=$(out)/bin" ]; 61 60 62 - meta = { 61 + meta = with lib; { 63 62 description = "Build dependency graphs between Coq objects"; 64 63 license = licenses.lgpl21; 65 64 maintainers = with maintainers; [ vbgl ];
+4 -4
pkgs/development/coq-modules/equations/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; (mkCoqDerivation { 3 + (mkCoqDerivation { 4 4 pname = "equations"; 5 5 owner = "mattam82"; 6 6 repo = "Coq-Equations"; 7 7 inherit version; 8 - defaultVersion = switch coq.coq-version [ 8 + defaultVersion = lib.switch coq.coq-version [ 9 9 { case = "8.16"; out = "1.3+8.16"; } 10 10 { case = "8.15"; out = "1.3+8.15"; } 11 11 { case = "8.14"; out = "1.3+8.14"; } ··· 57 57 58 58 mlPlugin = true; 59 59 60 - meta = { 60 + meta = with lib; { 61 61 homepage = "https://mattam82.github.io/Coq-Equations/"; 62 62 description = "A plugin for Coq to add dependent pattern-matching"; 63 63 maintainers = with maintainers; [ jwiegley ]; 64 64 }; 65 65 }).overrideAttrs (o: { 66 - preBuild = "coq_makefile -f _CoqProject -o Makefile${optionalString (versionAtLeast o.version "1.2.1" || o.version == "dev") ".coq"}"; 66 + preBuild = "coq_makefile -f _CoqProject -o Makefile${lib.optionalString (lib.versionAtLeast o.version "1.2.1" || o.version == "dev") ".coq"}"; 67 67 })
+3 -4
pkgs/development/coq-modules/extructures/default.nix
··· 2 2 , ssreflect 3 3 , deriving 4 4 }: 5 - with lib; 6 5 7 6 (mkCoqDerivation { 8 7 pname = "extructures"; 9 8 owner = "arthuraa"; 10 9 11 10 inherit version; 12 - defaultVersion = with versions; switch [coq.coq-version ssreflect.version] [ 11 + defaultVersion = with lib.versions; lib.switch [coq.coq-version ssreflect.version] [ 13 12 { cases = [(range "8.11" "8.16") (isGe "1.12.0") ]; out = "0.3.1"; } 14 13 { cases = [(range "8.11" "8.14") (isLe "1.12.0") ]; out = "0.3.0"; } 15 14 { cases = [(range "8.10" "8.12") (isLe "1.12.0") ]; out = "0.2.2"; } ··· 23 22 24 23 propagatedBuildInputs = [ ssreflect ]; 25 24 26 - meta = { 25 + meta = with lib; { 27 26 description = "Finite data structures with extensional reasoning"; 28 27 license = licenses.mit; 29 28 maintainers = [ maintainers.vbgl ]; ··· 31 30 32 31 }).overrideAttrs (o: { 33 32 propagatedBuildInputs = o.propagatedBuildInputs 34 - ++ optional (versionAtLeast o.version "0.3.0") deriving; 33 + ++ lib.optional (lib.versionAtLeast o.version "0.3.0") deriving; 35 34 })
+2 -2
pkgs/development/coq-modules/fiat/HEAD.nix
··· 1 1 {lib, mkCoqDerivation, coq, python27, version ? null }: 2 2 3 - with lib; mkCoqDerivation rec { 3 + mkCoqDerivation rec { 4 4 pname = "fiat"; 5 5 owner = "mit-plv"; 6 6 repo = "fiat"; ··· 29 29 meta = { 30 30 homepage = "http://plv.csail.mit.edu/fiat/"; 31 31 description = "A library for the Coq proof assistant for synthesizing efficient correct-by-construction programs from declarative specifications"; 32 - maintainers = with maintainers; [ jwiegley ]; 32 + maintainers = with lib.maintainers; [ jwiegley ]; 33 33 }; 34 34 }
+3 -3
pkgs/development/coq-modules/flocq/default.nix
··· 1 1 { lib, bash, autoconf, automake, 2 2 mkCoqDerivation, coq, version ? null }: 3 3 4 - with lib; mkCoqDerivation { 4 + mkCoqDerivation { 5 5 pname = "flocq"; 6 6 owner = "flocq"; 7 7 domain = "gitlab.inria.fr"; 8 8 inherit version; 9 - defaultVersion = with versions; switch coq.coq-version [ 9 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 10 10 { case = range "8.14" "8.16"; out = "4.1.0"; } 11 11 { case = range "8.7" "8.15"; out = "3.4.3"; } 12 12 { case = range "8.5" "8.8"; out = "2.6.1"; } ··· 22 22 mlPlugin = true; 23 23 useMelquiondRemake.logpath = "Flocq"; 24 24 25 - meta = { 25 + meta = with lib; { 26 26 description = "A floating-point formalization for the Coq system"; 27 27 license = licenses.lgpl3; 28 28 maintainers = with maintainers; [ jwiegley ];
+3 -4
pkgs/development/coq-modules/fourcolor/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, mathcomp, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation { 5 4 pname = "fourcolor"; ··· 12 11 release."1.2.5".sha256 = "sha256-3qOPNCRjGK2UdHGMSqElpIXhAPVCklpeQgZwf9AFals="; 13 12 14 13 inherit version; 15 - defaultVersion = with versions; switch [ coq.version mathcomp.version ] [ 14 + defaultVersion = with lib.versions; lib.switch [ coq.version mathcomp.version ] [ 16 15 { cases = [ (isGe "8.11") (isGe "1.12") ]; out = "1.2.5"; } 17 16 { cases = [ (isGe "8.11") (range "1.11" "1.14") ]; out = "1.2.4"; } 18 - { cases = [ (isLe "8.13") (pred.inter (isGe "1.11.0") (isLt "1.13")) ]; out = "1.2.3"; } 17 + { cases = [ (isLe "8.13") (lib.pred.inter (isGe "1.11.0") (isLt "1.13")) ]; out = "1.2.3"; } 19 18 ] null; 20 19 21 20 propagatedBuildInputs = [ mathcomp.algebra mathcomp.ssreflect mathcomp.fingroup ]; 22 21 23 - meta = { 22 + meta = with lib; { 24 23 description = "Formal proof of the Four Color Theorem "; 25 24 maintainers = with maintainers; [ siraben ]; 26 25 license = licenses.cecill-b;
+3 -3
pkgs/development/coq-modules/gaia-hydras/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, hydra-battles, gaia, 2 2 mathcomp-zify, mathcomp, version ? null }: 3 3 4 - with lib; mkCoqDerivation rec { 4 + mkCoqDerivation rec { 5 5 pname = "gaia-hydras"; 6 6 repo = "hydra-battles"; 7 7 ··· 10 10 releaseRev = (v: "v${v}"); 11 11 12 12 inherit version; 13 - defaultVersion = with versions; switch [coq.coq-version mathcomp.version] [ 13 + defaultVersion = with lib.versions; lib.switch [coq.coq-version mathcomp.version] [ 14 14 { cases = [ (range "8.14" "8.16") (isGe "1.12.0") ]; out = "0.6"; } 15 15 { cases = [ (range "8.13" "8.14") (isGe "1.12.0") ]; out = "0.5"; } 16 16 ] null; ··· 23 23 24 24 useDune = true; 25 25 26 - meta = { 26 + meta = with lib; { 27 27 description = "Comparison between ordinals in Gaia and Hydra battles"; 28 28 longDescription = '' 29 29 The Gaia and Hydra battles projects develop different notions of ordinals.
+3 -3
pkgs/development/coq-modules/gaia/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, mathcomp, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "gaia"; 5 5 6 6 release."1.11".sha256 = "sha256:0gwb0blf37sv9gb0qpn34dab71zdcx7jsnqm3j9p58qw65cgsqn5"; ··· 11 11 releaseRev = (v: "v${v}"); 12 12 13 13 inherit version; 14 - defaultVersion = with versions; switch [ coq.version mathcomp.version ] [ 14 + defaultVersion = with lib.versions; lib.switch [ coq.version mathcomp.version ] [ 15 15 { cases = [ (range "8.10" "8.16") (isGe "1.12.0") ]; out = "1.15"; } 16 16 { cases = [ (range "8.10" "8.12") "1.11.0" ]; out = "1.11"; } 17 17 ] null; ··· 19 19 propagatedBuildInputs = 20 20 [ mathcomp.ssreflect mathcomp.algebra mathcomp.fingroup ]; 21 21 22 - meta = { 22 + meta = with lib; { 23 23 description = "Implementation of books from Bourbaki's Elements of Mathematics in Coq"; 24 24 maintainers = with maintainers; [ Zimmi48 ]; 25 25 license = licenses.mit;
+3 -3
pkgs/development/coq-modules/gappalib/default.nix
··· 1 1 { which, lib, mkCoqDerivation, autoconf, coq, flocq, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "gappalib"; 5 5 repo = "coq"; 6 6 owner = "gappa"; 7 7 domain = "gitlab.inria.fr"; 8 8 inherit version; 9 - defaultVersion = if versions.range "8.8" "8.16" coq.coq-version then "1.5.2" else null; 9 + defaultVersion = if lib.versions.range "8.8" "8.16" coq.coq-version then "1.5.2" else null; 10 10 release."1.5.2".sha256 = "sha256-A021Bhqz5r2CZBayfjIiWrCIfUlejcQAfbTmOaf6QTM="; 11 11 release."1.5.1".sha256 = "1806bq1z6q5rq2ma7d5kfbqfyfr755hjg0dq7b2llry8fx9cxjsg"; 12 12 release."1.5.0".sha256 = "1i1c0gakffxqqqqw064cbvc243yl325hxd50jmczr6mk18igk41n"; ··· 19 19 propagatedBuildInputs = [ flocq ]; 20 20 useMelquiondRemake.logpath = "Gappa"; 21 21 22 - meta = { 22 + meta = with lib; { 23 23 description = "Coq support library for Gappa"; 24 24 license = licenses.lgpl21; 25 25 maintainers = [ maintainers.vbgl ];
+2 -3
pkgs/development/coq-modules/goedel/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, hydra-battles, pocklington, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation { 5 4 pname = "goedel"; ··· 11 10 release."8.13.0".sha256 = "0sqqkmj6wsk4xmhrnqkhcsbsrqjzn2gnk67nqzgrmjpw5danz8y5"; 12 11 13 12 inherit version; 14 - defaultVersion = with versions; switch coq.coq-version [ 13 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 15 14 { case = range "8.11" "8.16"; out = "8.13.0"; } 16 15 ] null; 17 16 18 17 propagatedBuildInputs = [ hydra-battles pocklington ]; 19 18 20 - meta = { 19 + meta = with lib; { 21 20 description = "The Gödel-Rosser 1st incompleteness theorem in Coq"; 22 21 maintainers = with maintainers; [ siraben ]; 23 22 license = licenses.mit;
+2 -4
pkgs/development/coq-modules/graph-theory/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, mathcomp-algebra, mathcomp-finmap, mathcomp-fingroup 2 2 , hierarchy-builder, version ? null }: 3 3 4 - with lib; 5 - 6 4 mkCoqDerivation { 7 5 pname = "graph-theory"; 8 6 ··· 11 9 releaseRev = v: "v${v}"; 12 10 13 11 inherit version; 14 - defaultVersion = with versions; switch coq.coq-version [ 12 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 15 13 { case = range "8.13" "8.16"; out = "0.9"; } 16 14 ] null; 17 15 18 16 propagatedBuildInputs = [ mathcomp-algebra mathcomp-finmap mathcomp-fingroup hierarchy-builder ]; 19 17 20 - meta = { 18 + meta = with lib; { 21 19 description = "Library of formalized graph theory results in Coq"; 22 20 longDescription = '' 23 21 A library of formalized graph theory results, including various
+3 -3
pkgs/development/coq-modules/heq/default.nix
··· 5 5 url = "https://${domain}/${owner}/${repo}/download/${repo}-${rev}.zip"; 6 6 inherit sha256; 7 7 }; in 8 - with lib; mkCoqDerivation { 8 + mkCoqDerivation { 9 9 pname = "heq"; 10 10 repo = "Heq"; 11 11 owner = "gil.hur"; 12 12 domain = "sf.snu.ac.kr"; 13 13 inherit version fetcher; 14 - defaultVersion = if versions.isLt "8.8" coq.coq-version then "0.92" else null; 14 + defaultVersion = if lib.versions.isLt "8.8" coq.coq-version then "0.92" else null; 15 15 release."0.92".sha256 = "0cf8y6728n81wwlbpq3vi7l2dbzi7759klypld4gpsjjp1y1fj74"; 16 16 17 17 mlPlugin = true; ··· 22 22 meta = { 23 23 homepage = "https://ropas.snu.ac.kr/~gil.hur/Heq/"; 24 24 description = "Heq : a Coq library for Heterogeneous Equality"; 25 - maintainers = with maintainers; [ jwiegley ]; 25 + maintainers = with lib.maintainers; [ jwiegley ]; 26 26 }; 27 27 }
+5 -5
pkgs/development/coq-modules/hierarchy-builder/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, coq-elpi, version ? null }: 2 2 3 - with lib; let hb = mkCoqDerivation { 3 + let hb = mkCoqDerivation { 4 4 pname = "hierarchy-builder"; 5 5 owner = "math-comp"; 6 6 inherit version; 7 - defaultVersion = with versions; switch coq.coq-version [ 7 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 8 8 { case = range "8.15" "8.16"; out = "1.4.0"; } 9 9 { case = range "8.13" "8.14"; out = "1.2.0"; } 10 10 { case = range "8.12" "8.13"; out = "1.1.0"; } ··· 25 25 26 26 extraInstallFlags = [ "VFILES=structures.v" ]; 27 27 28 - meta = { 28 + meta = with lib; { 29 29 description = "High level commands to declare a hierarchy based on packed classes"; 30 30 maintainers = with maintainers; [ cohencyril siraben ]; 31 31 license = licenses.mit; 32 32 }; 33 33 }; in 34 34 hb.overrideAttrs (o: 35 - optionalAttrs (versions.isGe "1.2.0" o.version || o.version == "dev") 35 + lib.optionalAttrs (lib.versions.isGe "1.2.0" o.version || o.version == "dev") 36 36 { buildPhase = "make build"; } 37 37 // 38 - optionalAttrs (versions.isGe "1.1.0" o.version || o.version == "dev") 38 + lib.optionalAttrs (lib.versions.isGe "1.1.0" o.version || o.version == "dev") 39 39 { installFlags = [ "DESTDIR=$(out)" ] ++ o.installFlags; } 40 40 )
+3 -4
pkgs/development/coq-modules/hydra-battles/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, equations, LibHyps, version ? null }: 2 - with lib; 3 2 4 3 (mkCoqDerivation { 5 4 pname = "hydra-battles"; ··· 11 10 releaseRev = (v: "v${v}"); 12 11 13 12 inherit version; 14 - defaultVersion = with versions; switch coq.coq-version [ 13 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 15 14 { case = range "8.13" "8.16"; out = "0.6"; } 16 15 { case = range "8.11" "8.12"; out = "0.4"; } 17 16 ] null; 18 17 19 18 useDune = true; 20 19 21 - meta = { 20 + meta = with lib; { 22 21 description = "Exploration of some properties of Kirby and Paris' hydra battles, with the help of Coq"; 23 22 longDescription = '' 24 23 An exploration of some properties of Kirby and Paris' hydra ··· 33 32 }; 34 33 }).overrideAttrs(o: 35 34 let inherit (o) version; in { 36 - propagatedBuildInputs = [ equations ] ++ optional (versions.isGe "0.6" version || version == "dev") LibHyps; 35 + propagatedBuildInputs = [ equations ] ++ lib.optional (lib.versions.isGe "0.6" version || version == "dev") LibHyps; 37 36 })
+3 -3
pkgs/development/coq-modules/iris/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, stdpp, version ? null }: 2 2 3 - with lib; mkCoqDerivation rec { 3 + mkCoqDerivation rec { 4 4 pname = "iris"; 5 5 domain = "gitlab.mpi-sws.org"; 6 6 owner = "iris"; 7 7 inherit version; 8 - defaultVersion = with versions; switch coq.coq-version [ 8 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 9 9 { case = range "8.13" "8.16"; out = "4.0.0"; } 10 10 { case = range "8.12" "8.14"; out = "3.5.0"; } 11 11 { case = range "8.11" "8.13"; out = "3.4.0"; } ··· 26 26 fi 27 27 ''; 28 28 29 - meta = { 29 + meta = with lib; { 30 30 description = "The Coq development of the Iris Project"; 31 31 license = licenses.bsd3; 32 32 maintainers = [ maintainers.vbgl ];
+2 -3
pkgs/development/coq-modules/itauto/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation rec { 5 4 pname = "itauto"; ··· 11 10 release."8.14.0".sha256 = "sha256:1k6pqhv4dwpkwg81f2rlfg40wh070ks1gy9r0ravm2zhsbxqcfc9"; 12 11 release."8.13+no".sha256 = "sha256-gXoxtLcHPoyjJkt7WqvzfCMCQlh6kL2KtCGe3N6RC/A="; 13 12 inherit version; 14 - defaultVersion = with versions; switch coq.coq-version [ 13 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 15 14 { case = isEq "8.16"; out = "8.16.0"; } 16 15 { case = isEq "8.15"; out = "8.15.0"; } 17 16 { case = isEq "8.14"; out = "8.14.0"; } ··· 22 21 nativeBuildInputs = (with coq.ocamlPackages; [ ocamlbuild ]); 23 22 enableParallelBuilding = false; 24 23 25 - meta = { 24 + meta = with lib; { 26 25 description = "A reflexive SAT solver parameterised by a leaf tactic and Nelson-Oppen support"; 27 26 maintainers = with maintainers; [ siraben ]; 28 27 license = licenses.gpl3Plus;
+3 -3
pkgs/development/coq-modules/ltac2/default.nix
··· 1 1 { lib, mkCoqDerivation, which, coq, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "ltac2"; 5 5 owner = "coq"; 6 6 inherit version; 7 - defaultVersion = with versions; switch coq.coq-version [ 7 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 8 8 { case = "8.10"; out = "0.3"; } 9 9 { case = "8.9"; out = "0.2"; } 10 10 { case = "8.8"; out = "0.1"; } ··· 19 19 20 20 mlPlugin = true; 21 21 22 - meta = { 22 + meta = with lib; { 23 23 description = "A robust and expressive tactic language for Coq"; 24 24 maintainers = [ maintainers.vbgl ]; 25 25 license = licenses.lgpl21;
+3 -3
pkgs/development/coq-modules/math-classes/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, bignums, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 5 5 pname = "math-classes"; 6 6 inherit version; 7 - defaultVersion = if versions.range "8.6" "8.16" coq.coq-version then "8.15.0" else null; 7 + defaultVersion = if lib.versions.range "8.6" "8.16" coq.coq-version then "8.15.0" else null; 8 8 release."8.12.0".sha256 = "14nd6a08zncrl5yg2gzk0xf4iinwq4hxnsgm4fyv07ydbkxfb425"; 9 9 release."8.13.0".sha256 = "1ln7ziivfbxzbdvlhbvyg3v30jgblncmwcsam6gg3d1zz6r7cbby"; 10 10 release."8.15.0".sha256 = "10w1hm537k6jx8a8vghq1yx12rsa0sjk2ipv3scgir71ln30hllw"; ··· 14 14 meta = { 15 15 homepage = "https://math-classes.github.io"; 16 16 description = "A library of abstract interfaces for mathematical structures in Coq."; 17 - maintainers = with maintainers; [ siddharthist jwiegley ]; 17 + maintainers = with lib.maintainers; [ siddharthist jwiegley ]; 18 18 }; 19 19 }
+1 -1
pkgs/development/coq-modules/mathcomp-abel/default.nix
··· 7 7 owner = "math-comp"; 8 8 9 9 inherit version; 10 - defaultVersion = with lib; with versions; switch [ coq.version mathcomp.version ] [ 10 + defaultVersion = with lib; with versions; lib.switch [ coq.version mathcomp.version ] [ 11 11 { cases = [ (range "8.10" "8.16") (range "1.12.0" "1.15.0") ]; out = "1.2.1"; } 12 12 { cases = [ (range "8.10" "8.15") (range "1.12.0" "1.14.0") ]; out = "1.2.0"; } 13 13 { cases = [ (range "8.10" "8.14") (range "1.11.0" "1.12.0") ]; out = "1.1.2"; }
+4 -4
pkgs/development/coq-modules/mathcomp-algebra-tactics/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, mathcomp-algebra, 2 2 coq-elpi, mathcomp-zify, version ? null }: 3 3 4 - with lib; mkCoqDerivation { 4 + mkCoqDerivation { 5 5 namePrefix = [ "coq" "mathcomp" ]; 6 6 pname = "algebra-tactics"; 7 7 owner = "math-comp"; 8 8 inherit version; 9 9 10 - defaultVersion = with versions; 11 - switch [ coq.coq-version mathcomp-algebra.version ] [ 10 + defaultVersion = with lib.versions; 11 + lib.switch [ coq.coq-version mathcomp-algebra.version ] [ 12 12 { cases = [ (range "8.13" "8.16") (isGe "1.12") ]; out = "1.0.0"; } 13 13 ] null; 14 14 ··· 18 18 19 19 meta = { 20 20 description = "Ring and field tactics for Mathematical Components"; 21 - maintainers = with maintainers; [ cohencyril ]; 21 + maintainers = with lib.maintainers; [ cohencyril ]; 22 22 }; 23 23 }
+2 -2
pkgs/development/coq-modules/mathcomp-analysis/default.nix
··· 21 21 release."0.3.1".sha256 = "1iad288yvrjv8ahl9v18vfblgqb1l5z6ax644w49w9hwxs93f2k8"; 22 22 release."0.2.3".sha256 = "0p9mr8g1qma6h10qf7014dv98ln90dfkwn76ynagpww7qap8s966"; 23 23 24 - defaultVersion = with versions; switch [ coq.version mathcomp.version ] [ 24 + defaultVersion = with versions; lib.switch [ coq.version mathcomp.version ] [ 25 25 { cases = [ (isGe "8.14") (isGe "1.13.0") ]; out = "0.5.3"; } 26 26 { cases = [ (isGe "8.14") (range "1.13" "1.15") ]; out = "0.5.2"; } 27 27 { cases = [ (isGe "8.13") (range "1.13" "1.14") ]; out = "0.5.1"; } ··· 40 40 classical-deps = [ mathcomp.algebra mathcomp-finmap hierarchy-builder ]; 41 41 analysis-deps = [ mathcomp.field mathcomp-bigenough ]; 42 42 intra-deps = if package == "single" then [] 43 - else map mathcomp_ (head (splitList (pred.equal package) packages)); 43 + else map mathcomp_ (head (splitList (lib.pred.equal package) packages)); 44 44 pkgpath = if package == "single" then "." 45 45 else if package == "analysis" then "theories" else "${package}"; 46 46 pname = if package == "single" then "mathcomp-analysis-single"
+3 -3
pkgs/development/coq-modules/mathcomp-bigenough/default.nix
··· 1 1 { coq, mkCoqDerivation, mathcomp, lib, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 5 5 namePrefix = [ "coq" "mathcomp" ]; 6 6 pname = "bigenough"; ··· 11 11 "1.0.1".sha256 = "sha256:02f4dv4rz72liciwxb2k7acwx6lgqz4381mqyq5854p3nbyn06aw"; 12 12 }; 13 13 inherit version; 14 - defaultVersion = with versions; switch coq.version [ 14 + defaultVersion = with lib.versions; lib.switch coq.version [ 15 15 { case = range "8.10" "8.16"; out = "1.0.1"; } 16 16 { case = range "8.5" "8.14"; out = "1.0.0"; } 17 17 ] null; ··· 20 20 21 21 meta = { 22 22 description = "A small library to do epsilon - N reasonning"; 23 - license = licenses.cecill-b; 23 + license = lib.licenses.cecill-b; 24 24 }; 25 25 }
+3 -3
pkgs/development/coq-modules/mathcomp-finmap/default.nix
··· 1 1 { coq, mkCoqDerivation, mathcomp, lib, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 5 5 namePrefix = [ "coq" "mathcomp" ]; 6 6 pname = "finmap"; 7 7 owner = "math-comp"; 8 8 inherit version; 9 - defaultVersion = with versions; switch [ coq.version mathcomp.version ] [ 9 + defaultVersion = with lib.versions; lib.switch [ coq.version mathcomp.version ] [ 10 10 { cases = [ (range "8.13" "8.16") (isGe "1.12") ]; out = "1.5.2"; } 11 11 { cases = [ (isGe "8.10") (isGe "1.11") ]; out = "1.5.1"; } 12 12 { cases = [ (range "8.7" "8.11") "1.11.0" ]; out = "1.5.0"; } ··· 33 33 34 34 meta = { 35 35 description = "A finset and finmap library"; 36 - license = licenses.cecill-b; 36 + license = lib.licenses.cecill-b; 37 37 }; 38 38 }
+3 -3
pkgs/development/coq-modules/mathcomp-real-closed/default.nix
··· 1 1 { coq, mkCoqDerivation, mathcomp, mathcomp-bigenough, 2 2 lib, version ? null }: 3 3 4 - with lib; mkCoqDerivation { 4 + mkCoqDerivation { 5 5 6 6 namePrefix = [ "coq" "mathcomp" ]; 7 7 pname = "real-closed"; ··· 17 17 "1.0.1".sha256 = "0j81gkjbza5vg89v4n9z598mfdbql416963rj4b8fzm7dp2r4rxg"; 18 18 }; 19 19 20 - defaultVersion = with versions; switch [ coq.version mathcomp.version ] [ 20 + defaultVersion = with lib.versions; lib.switch [ coq.version mathcomp.version ] [ 21 21 { cases = [ (isGe "8.13") (isGe "1.12.0") ]; out = "1.1.3"; } 22 22 { cases = [ (isGe "8.10") (isGe "1.12.0") ]; out = "1.1.2"; } 23 23 { cases = [ (isGe "8.7") "1.11.0" ]; out = "1.1.1"; } ··· 37 37 38 38 meta = { 39 39 description = "Mathematical Components Library on real closed fields"; 40 - license = licenses.cecill-c; 40 + license = lib.licenses.cecill-c; 41 41 }; 42 42 }
+5 -4
pkgs/development/coq-modules/mathcomp-tarjan/default.nix
··· 1 1 { coq, mkCoqDerivation, mathcomp-ssreflect, mathcomp-fingroup, 2 2 lib, version ? null }@args: 3 - with lib; mkCoqDerivation { 3 + 4 + mkCoqDerivation { 4 5 5 6 namePrefix = [ "coq" "mathcomp" ]; 6 7 pname = "tarjan"; 7 8 owner = "math-comp"; 8 9 9 10 inherit version; 10 - defaultVersion = with versions; 11 - switch [ coq.version mathcomp-ssreflect.version ] [{ 11 + defaultVersion = with lib.versions; 12 + lib.switch [ coq.version mathcomp-ssreflect.version ] [{ 12 13 cases = [ (range "8.10" "8.16") (isGe "1.12.0") ]; out = "1.0.0"; 13 14 }] null; 14 15 release."1.0.0".sha256 = "sha256:0r459r0makshzwlygw6kd4lpvdjc43b3x5y9aa8x77f2z5gymjq1"; ··· 17 18 18 19 meta = { 19 20 description = "Proofs of Tarjan and Kosaraju connected components algorithms"; 20 - license = licenses.cecill-b; 21 + license = lib.licenses.cecill-b; 21 22 }; 22 23 }
+2 -3
pkgs/development/coq-modules/mathcomp-word/default.nix
··· 1 1 { coq, mkCoqDerivation, mathcomp, lib, version ? null }: 2 2 3 - with lib; 4 3 mkCoqDerivation { 5 4 namePrefix = [ "coq" "mathcomp" ]; 6 5 pname = "word"; ··· 15 14 release."1.0".sha256 = "sha256:0703m97rnivcbc7vvbd9rl2dxs6l8n52cbykynw61c6w9rhxspcg"; 16 15 17 16 inherit version; 18 - defaultVersion = with versions; switch [ coq.version mathcomp.version ] [ 17 + defaultVersion = with lib.versions; lib.switch [ coq.version mathcomp.version ] [ 19 18 { cases = [ (range "8.12" "8.16") (isGe "1.12") ]; out = "2.0"; } 20 19 ] null; 21 20 22 21 propagatedBuildInputs = [ mathcomp.algebra mathcomp.ssreflect mathcomp.fingroup ]; 23 22 24 - meta = { 23 + meta = with lib; { 25 24 description = "Yet Another Coq Library on Machine Words"; 26 25 maintainers = [ maintainers.vbgl ]; 27 26 license = licenses.mit;
+4 -4
pkgs/development/coq-modules/mathcomp-zify/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, mathcomp-algebra, mathcomp-ssreflect, mathcomp-fingroup, version ? null }: 2 2 3 - with lib; mkCoqDerivation rec { 3 + mkCoqDerivation rec { 4 4 namePrefix = [ "coq" "mathcomp" ]; 5 5 pname = "zify"; 6 6 repo = "mczify"; 7 7 owner = "math-comp"; 8 8 inherit version; 9 9 10 - defaultVersion = with versions; 11 - switch [ coq.coq-version mathcomp-algebra.version ] [ 10 + defaultVersion = with lib.versions; 11 + lib.switch [ coq.coq-version mathcomp-algebra.version ] [ 12 12 { cases = [ (range "8.13" "8.16") (isGe "1.12") ]; out = "1.1.0+1.12+8.13"; } 13 13 ] null; 14 14 ··· 19 19 20 20 meta = { 21 21 description = "Micromega tactics for Mathematical Components"; 22 - maintainers = with maintainers; [ cohencyril ]; 22 + maintainers = with lib.maintainers; [ cohencyril ]; 23 23 }; 24 24 }
+2 -2
pkgs/development/coq-modules/mathcomp/default.nix
··· 18 18 repo = "math-comp"; 19 19 owner = "math-comp"; 20 20 withDoc = single && (args.withDoc or false); 21 - defaultVersion = with versions; switch coq.coq-version [ 21 + defaultVersion = with versions; lib.switch coq.coq-version [ 22 22 { case = range "8.14" "8.16"; out = "1.15.0"; } 23 23 { case = range "8.11" "8.15"; out = "1.14.0"; } 24 24 { case = range "8.11" "8.15"; out = "1.13.0"; } ··· 50 50 51 51 mathcomp_ = package: let 52 52 mathcomp-deps = if package == "single" then [] 53 - else map mathcomp_ (head (splitList (pred.equal package) packages)); 53 + else map mathcomp_ (head (splitList (lib.pred.equal package) packages)); 54 54 pkgpath = if package == "single" then "mathcomp" else "mathcomp/${package}"; 55 55 pname = if package == "single" then "mathcomp" else "mathcomp-${package}"; 56 56 pkgallMake = ''
+2 -2
pkgs/development/coq-modules/metacoq/default.nix
··· 5 5 let 6 6 repo = "metacoq"; 7 7 owner = "MetaCoq"; 8 - defaultVersion = with versions; switch coq.coq-version [ 8 + defaultVersion = with versions; lib.switch coq.coq-version [ 9 9 { case = "8.11"; out = "1.0-beta2-8.11"; } 10 10 { case = "8.12"; out = "1.0-beta2-8.12"; } 11 11 # Do not provide 8.13 because it does not compile with equations 1.3 provided by default (only 1.2.3) ··· 34 34 35 35 metacoq_ = package: let 36 36 metacoq-deps = if package == "single" then [] 37 - else map metacoq_ (head (splitList (pred.equal package) packages)); 37 + else map metacoq_ (head (splitList (lib.pred.equal package) packages)); 38 38 pkgpath = if package == "single" then "./" else "./${package}"; 39 39 pname = if package == "all" then "metacoq" else "metacoq-${package}"; 40 40 pkgallMake = ''
+3 -3
pkgs/development/coq-modules/metalib/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "metalib"; 5 5 owner = "plclub"; 6 6 inherit version; 7 - defaultVersion = with versions; switch coq.coq-version [ 7 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 8 8 { case = range "8.14" "8.16"; out = "8.15"; } 9 9 { case = range "8.10" "8.13"; out = "8.10"; } 10 10 ] null; ··· 14 14 15 15 sourceRoot = "source/Metalib"; 16 16 17 - meta = { 17 + meta = with lib; { 18 18 license = licenses.mit; 19 19 maintainers = [ maintainers.jwiegley ]; 20 20 };
+5 -5
pkgs/development/coq-modules/multinomials/default.nix
··· 1 1 { coq, mkCoqDerivation, mathcomp, mathcomp-finmap, mathcomp-bigenough, 2 2 lib, version ? null, useDune ? false }@args: 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 5 5 namePrefix = [ "coq" "mathcomp" ]; 6 6 pname = "multinomials"; ··· 8 8 owner = "math-comp"; 9 9 10 10 inherit version; 11 - defaultVersion = with versions; switch [ coq.version mathcomp.version ] [ 11 + defaultVersion = with lib.versions; lib.switch [ coq.version mathcomp.version ] [ 12 12 { cases = [ (isGe "8.10") (isGe "1.12.0") ]; out = "1.5.5"; } 13 13 { cases = [ (range "8.10" "8.12") "1.12.0" ]; out = "1.5.3"; } 14 14 { cases = [ (range "8.7" "8.12") "1.11.0" ]; out = "1.5.2"; } ··· 31 31 "1.0".sha256 = "1qmbxp1h81cy3imh627pznmng0kvv37k4hrwi2faa101s6bcx55m"; 32 32 }; 33 33 34 - useDuneifVersion = v: versions.isGe "1.5.3" v || v == "dev"; 34 + useDuneifVersion = v: lib.versions.isGe "1.5.3" v || v == "dev"; 35 35 36 36 preConfigure = '' 37 37 patchShebangs configure || true ··· 42 42 43 43 meta = { 44 44 description = "A Coq/SSReflect Library for Monoidal Rings and Multinomials"; 45 - license = licenses.cecill-c; 45 + license = lib.licenses.cecill-c; 46 46 }; 47 47 } 48 - // optionalAttrs (args?useDune) { inherit useDune; } 48 + // lib.optionalAttrs (args?useDune) { inherit useDune; }
+2 -3
pkgs/development/coq-modules/odd-order/default.nix
··· 1 1 { lib, mkCoqDerivation, mathcomp, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation { 5 4 pname = "odd-order"; ··· 11 10 releaseRev = v: "mathcomp-odd-order.${v}"; 12 11 13 12 inherit version; 14 - defaultVersion = with versions; switch mathcomp.character.version [ 13 + defaultVersion = with lib.versions; lib.switch mathcomp.character.version [ 15 14 { case = (range "1.13.0" "1.15.0"); out = "1.14.0"; } 16 15 { case = (range "1.12.0" "1.14.0"); out = "1.13.0"; } 17 16 { case = (range "1.10.0" "1.12.0"); out = "1.12.0"; } ··· 27 26 mathcomp.all 28 27 ]; 29 28 30 - meta = { 29 + meta = with lib; { 31 30 description = "Formal proof of the Odd Order Theorem"; 32 31 maintainers = with maintainers; [ siraben ]; 33 32 license = licenses.cecill-b;
+3 -3
pkgs/development/coq-modules/paco/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "paco"; 5 5 owner = "snu-sf"; 6 6 inherit version; 7 - defaultVersion = with versions; switch coq.coq-version [ 7 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 8 8 { case = range "8.12" "8.16"; out = "4.1.2"; } 9 9 { case = range "8.9" "8.13"; out = "4.1.1"; } 10 10 { case = range "8.6" "8.13"; out = "4.0.2"; } ··· 27 27 meta = { 28 28 homepage = "http://plv.mpi-sws.org/paco/"; 29 29 description = "A Coq library implementing parameterized coinduction"; 30 - maintainers = with maintainers; [ jwiegley ptival ]; 30 + maintainers = with lib.maintainers; [ jwiegley ptival ]; 31 31 }; 32 32 }
+3 -3
pkgs/development/coq-modules/paramcoq/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "paramcoq"; 5 5 inherit version; 6 - defaultVersion = with versions; switch coq.version [ 6 + defaultVersion = with lib.versions; lib.switch coq.version [ 7 7 { case = range "8.10" "8.16"; out = "1.1.3+coq${coq.coq-version}"; } 8 8 { case = range "8.7" "8.13"; out = "1.1.2+coq${coq.coq-version}"; } 9 9 ] null; ··· 24 24 release."1.1.2+coq8.7".sha256 = "09n0ky7ldb24by7yf5j3hv410h85x50ksilf7qacl7xglj4gy5hj"; 25 25 releaseRev = v: "v${v}"; 26 26 mlPlugin = true; 27 - meta = { 27 + meta = with lib; { 28 28 description = "Coq plugin for parametricity"; 29 29 license = licenses.mit; 30 30 maintainers = [ maintainers.vbgl ];
+2 -3
pkgs/development/coq-modules/parsec/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, ceres, coq-ext-lib, version ? null }: 2 2 3 - with lib; 4 3 mkCoqDerivation { 5 4 6 5 pname = "parsec"; ··· 11 10 releaseRev = (v: "v${v}"); 12 11 13 12 inherit version; 14 - defaultVersion = with versions; switch coq.version [ 13 + defaultVersion = with lib.versions; lib.switch coq.version [ 15 14 { case = range "8.12" "8.16"; out = "0.1.1"; } 16 15 { case = range "8.12" "8.13"; out = "0.1.0"; } 17 16 ] null; 18 17 release."0.1.1".sha256 = "sha256:1c0l18s68pzd4c8i3jimh2yz0pqm4g38pca4bm7fr18r8xmqf189"; 19 18 release."0.1.0".sha256 = "sha256:01avfcqirz2b9wjzi9iywbhz9szybpnnj3672dgkfsimyg9jgnsr"; 20 19 21 - meta = { 20 + meta = with lib; { 22 21 description = "Library for serialization to S-expressions"; 23 22 license = licenses.bsd3; 24 23 maintainers = with maintainers; [ Zimmi48 ];
+2 -3
pkgs/development/coq-modules/pocklington/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation { 5 4 pname = "pocklington"; ··· 9 8 release."8.12.0".sha256 = "sha256-0xBrw9+4g14niYdNqp0nx00fPJoSSnaDSDEaIVpPfjs="; 10 9 11 10 inherit version; 12 - defaultVersion = with versions; switch coq.coq-version [ 11 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 13 12 { case = isGe "8.7"; out = "8.12.0"; } 14 13 ] null; 15 14 16 - meta = { 15 + meta = with lib; { 17 16 description = "Pocklington's criterion for primality in Coq"; 18 17 maintainers = with maintainers; [ siraben ]; 19 18 license = licenses.mit;
+2 -3
pkgs/development/coq-modules/reglang/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, ssreflect, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation { 5 4 pname = "reglang"; ··· 9 8 release."1.1.2".sha256 = "sha256-SEnMilLNxh6a3oiDNGLaBr8quQ/nO2T9Fwdf/1il2Yk="; 10 9 11 10 inherit version; 12 - defaultVersion = with versions; switch coq.coq-version [ 11 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 13 12 { case = range "8.10" "8.16"; out = "1.1.2"; } 14 13 ] null; 15 14 16 15 17 16 propagatedBuildInputs = [ ssreflect ]; 18 17 19 - meta = { 18 + meta = with lib; { 20 19 description = "Regular Language Representations in Coq"; 21 20 maintainers = with maintainers; [ siraben ]; 22 21 license = licenses.cecill-b;
+3 -4
pkgs/development/coq-modules/relation-algebra/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, aac-tactics, mathcomp, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation { 5 4 pname = "relation-algebra"; 6 5 owner = "damien-pous"; 7 6 8 7 releaseRev = v: 9 - if versions.isGe "1.7.6" v 8 + if lib.versions.isGe "1.7.6" v 10 9 then "v.${v}" 11 10 else "v${v}"; 12 11 ··· 20 19 release."1.7.1".sha256 = "sha256-WWVMcR6z8rT4wzZPb8SlaVWGe7NC8gScPqawd7bltQA="; 21 20 22 21 inherit version; 23 - defaultVersion = with versions; switch coq.coq-version [ 22 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 24 23 { case = isEq "8.16"; out = "1.7.8"; } 25 24 { case = isEq "8.15"; out = "1.7.7"; } 26 25 { case = isEq "8.14"; out = "1.7.6"; } ··· 35 34 36 35 propagatedBuildInputs = [ aac-tactics mathcomp.ssreflect ]; 37 36 38 - meta = { 37 + meta = with lib; { 39 38 description = "Relation algebra library for Coq"; 40 39 maintainers = with maintainers; [ siraben ]; 41 40 license = licenses.gpl3Plus;
+2 -3
pkgs/development/coq-modules/semantics/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation rec { 5 4 pname = "semantics"; ··· 15 14 release."8.6.0".sha256 = "sha256-GltkGQ3tJqUPAbdDkqqvKLLhMOap50XvGaCkjshiNdY="; 16 15 17 16 inherit version; 18 - defaultVersion = with versions; switch coq.coq-version [ 17 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 19 18 { case = range "8.10" "8.16"; out = "8.14.0"; } 20 19 { case = "8.9"; out = "8.9.0"; } 21 20 { case = "8.8"; out = "8.8.0"; } ··· 34 33 done 35 34 ''; 36 35 37 - meta = { 36 + meta = with lib; { 38 37 description = "A survey of programming language semantics styles in Coq"; 39 38 longDescription = '' 40 39 A survey of semantics styles in Coq, from natural semantics through
+1 -1
pkgs/development/coq-modules/serapi/default.nix
··· 17 17 inherit version release; 18 18 19 19 defaultVersion = with versions; 20 - switch coq.version [ 20 + lib.switch coq.version [ 21 21 { case = isEq "8.16"; out = "8.16.0+0.16.0"; } 22 22 { case = isEq "8.15"; out = "8.15.0+0.15.0"; } 23 23 { case = isEq "8.14"; out = "8.14.0+0.14.0"; }
+3 -3
pkgs/development/coq-modules/simple-io/default.nix
··· 1 1 { lib, callPackage, mkCoqDerivation, coq, coq-ext-lib, version ? null }: 2 2 3 - with lib; mkCoqDerivation { 3 + mkCoqDerivation { 4 4 pname = "simple-io"; 5 5 owner = "Lysxia"; 6 6 repo = "coq-simple-io"; 7 7 inherit version; 8 - defaultVersion = with versions; switch coq.coq-version [ 8 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 9 9 { case = range "8.11" "8.16"; out = "1.7.0"; } 10 10 { case = range "8.7" "8.13"; out = "1.3.0"; } 11 11 ] null; ··· 21 21 22 22 passthru.tests.HelloWorld = callPackage ./test.nix {}; 23 23 24 - meta = { 24 + meta = with lib; { 25 25 description = "Purely functional IO for Coq"; 26 26 license = licenses.mit; 27 27 maintainers = [ maintainers.vbgl ];
+2 -3
pkgs/development/coq-modules/smpl/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation { 5 4 pname = "smpl"; ··· 13 12 releaseRev = v: "v${v}"; 14 13 15 14 inherit version; 16 - defaultVersion = with versions; switch coq.version [ 15 + defaultVersion = with lib.versions; lib.switch coq.version [ 17 16 { case = isEq "8.15"; out = "8.15"; } 18 17 { case = isEq "8.14"; out = "8.14"; } 19 18 { case = "8.13.2"; out = "8.13"; } ··· 23 22 24 23 mlPlugin = true; 25 24 26 - meta = { 25 + meta = with lib; { 27 26 description = "A Coq plugin providing an extensible tactic similar to first"; 28 27 maintainers = with maintainers; [ siraben ]; 29 28 license = licenses.mit;
+2 -3
pkgs/development/coq-modules/smtcoq/default.nix
··· 1 1 { lib, stdenv, gcc10StdenvCompat, pkgs, mkCoqDerivation, coq, trakt, veriT, zchaff, fetchurl, version ? null }: 2 - with lib; 3 2 4 3 let 5 4 # version of veriT that works with SMTCoq ··· 23 22 release."2021-09-17".sha256 = "sha256-bF7ES+tXraaAJwVEwAMx3CUESpNlAUerQjr4d2eaGJQ="; 24 23 25 24 inherit version; 26 - defaultVersion = with versions; switch coq.version [ 25 + defaultVersion = with lib.versions; lib.switch coq.version [ 27 26 { case = isEq "8.13"; out = "2021-09-17"; } 28 27 ] null; 29 28 ··· 34 33 # This is meant to ease future troubleshooting of cvc4 build failures 35 34 passthru = { inherit cvc4; }; 36 35 37 - meta = { 36 + meta = with lib; { 38 37 description = "Communication between Coq and SAT/SMT solvers "; 39 38 maintainers = with maintainers; [ siraben ]; 40 39 license = licenses.cecill-b;
+3 -3
pkgs/development/coq-modules/stdpp/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; mkCoqDerivation rec { 3 + mkCoqDerivation rec { 4 4 pname = "stdpp"; 5 5 inherit version; 6 6 domain = "gitlab.mpi-sws.org"; 7 7 owner = "iris"; 8 - defaultVersion = with versions; switch coq.coq-version [ 8 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 9 9 { case = range "8.13" "8.16"; out = "1.8.0"; } 10 10 { case = range "8.12" "8.14"; out = "1.6.0"; } 11 11 { case = range "8.11" "8.13"; out = "1.5.0"; } ··· 24 24 fi 25 25 ''; 26 26 27 - meta = { 27 + meta = with lib; { 28 28 description = "An extended “Standard Library” for Coq"; 29 29 license = licenses.bsd3; 30 30 maintainers = [ maintainers.vbgl ];
+4 -4
pkgs/development/coq-modules/tlc/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 2 3 - with lib; (mkCoqDerivation { 3 + (mkCoqDerivation { 4 4 pname = "tlc"; 5 5 owner = "charguer"; 6 6 inherit version; 7 7 displayVersion = { tlc = false; }; 8 - defaultVersion = with versions; switch coq.coq-version [ 8 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 9 9 { case = range "8.13" "8.16"; out = "20211215"; } 10 10 { case = range "8.12" "8.13"; out = "20210316"; } 11 11 { case = range "8.10" "8.12"; out = "20200328"; } ··· 16 16 release."20200328".sha256 = "16vzild9gni8zhgb3qhmka47f8zagdh03k6nssif7drpim8233lx"; 17 17 release."20181116".sha256 = "032lrbkxqm9d3fhf6nv1kq2z0mqd3czv3ijlbsjwnfh12xck4vpl"; 18 18 19 - meta = { 19 + meta = with lib; { 20 20 homepage = "http://www.chargueraud.org/softs/tlc/"; 21 21 description = "A non-constructive library for Coq"; 22 22 license = licenses.free; 23 23 maintainers = [ maintainers.vbgl ]; 24 24 }; 25 25 }).overrideAttrs (x: 26 - if versionAtLeast x.version "20210316" 26 + if lib.versionAtLeast x.version "20210316" 27 27 then {} 28 28 else { 29 29 installFlags = [ "CONTRIB=$(out)/lib/coq/${coq.coq-version}/user-contrib" ];
+3 -4
pkgs/development/coq-modules/topology/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, mathcomp, zorns-lemma, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation rec { 5 4 pname = "topology"; ··· 15 14 release."8.6.0".sha256 = "sha256-eu/dBEFo3y6vnXlJljUD4hds6+qgAPQVvsuspyGHcj8="; 16 15 17 16 inherit version; 18 - defaultVersion = with versions; switch coq.coq-version [ 17 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 19 18 { case = range "8.10" "8.16"; out = "9.0.0"; } 20 19 { case = "8.9"; out = "8.9.0"; } 21 20 { case = "8.8"; out = "8.8.0"; } ··· 25 24 26 25 propagatedBuildInputs = [ zorns-lemma ]; 27 26 28 - useDuneifVersion = versions.isGe "9.0"; 27 + useDuneifVersion = lib.versions.isGe "9.0"; 29 28 30 - meta = { 29 + meta = with lib; { 31 30 description = "General topology in Coq"; 32 31 longDescription = '' 33 32 This library develops some of the basic concepts and results of
+2 -3
pkgs/development/coq-modules/trakt/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, coq-elpi, version ? null }: 2 - with lib; 3 2 4 3 mkCoqDerivation { 5 4 pname = "trakt"; ··· 9 8 release."1.0".sha256 = "sha256-Qhw5fWFYxUFO2kIWWz/og+4fuy9aYG27szfNk3IglhY="; 10 9 11 10 inherit version; 12 - defaultVersion = with versions; switch [ coq.version ] [ 11 + defaultVersion = with lib.versions; lib.switch [ coq.version ] [ 13 12 { cases = [ (range "8.13" "8.16") ]; out = "1.0"; } 14 13 ] null; 15 14 16 15 propagatedBuildInputs = [ coq-elpi ]; 17 16 18 - meta = { 17 + meta = with lib; { 19 18 description = "A generic goal preprocessing tool for proof automation tactics in Coq"; 20 19 maintainers = with maintainers; [ siraben ]; 21 20 license = licenses.cecill-b;
+4 -5
pkgs/development/coq-modules/zorns-lemma/default.nix
··· 1 1 { lib, mkCoqDerivation, coq, version ? null }: 2 - with lib; 3 2 4 3 (mkCoqDerivation { 5 4 pname = "zorns-lemma"; ··· 16 15 release."8.5.0".sha256 = "sha256-mH/v02ObMjbVPYx2H+Jhz+Xp0XRKN67iMAdA1VNFzso="; 17 16 18 17 inherit version; 19 - defaultVersion = with versions; switch coq.coq-version [ 18 + defaultVersion = with lib.versions; lib.switch coq.coq-version [ 20 19 { case = range "8.10" "8.16"; out = "9.0.0"; } 21 20 { case = "8.9"; out = "8.9.0"; } 22 21 { case = "8.8"; out = "8.8.0"; } ··· 25 24 { case = "8.5"; out = "8.5.0"; } 26 25 ] null; 27 26 28 - useDuneifVersion = versions.isGe "9.0"; 27 + useDuneifVersion = lib.versions.isGe "9.0"; 29 28 30 - meta = { 29 + meta = with lib; { 31 30 description = "Development of basic set theory"; 32 31 longDescription = '' 33 32 This Coq library develops some basic set theory. The main ··· 37 36 maintainers = with maintainers; [ siraben ]; 38 37 license = licenses.lgpl21Plus; 39 38 }; 40 - }).overrideAttrs({version, ...}: if versions.isGe "9.0" version then { repo = "topology"; } else {}) 39 + }).overrideAttrs({version, ...}: if lib.versions.isGe "9.0" version then { repo = "topology"; } else {})