nixpkgs/pkgs/top-level/coq-packages.nix

139 lines
6 KiB
Nix
Raw Normal View History

2020-05-22 11:10:17 +02:00
{ lib, callPackage, newScope, recurseIntoAttrs, ocamlPackages_4_05, ocamlPackages_4_09 }:
let
mkCoqPackages' = self: coq:
let callPackage = self.callPackage; in {
inherit coq;
coqPackages = self;
contribs = recurseIntoAttrs
(callPackage ../development/coq-modules/contribs {});
autosubst = callPackage ../development/coq-modules/autosubst {};
bignums = if lib.versionAtLeast coq.coq-version "8.6"
then callPackage ../development/coq-modules/bignums {}
else null;
category-theory = callPackage ../development/coq-modules/category-theory { };
Cheerios = callPackage ../development/coq-modules/Cheerios {};
CoLoR = callPackage ../development/coq-modules/CoLoR {};
2019-10-22 20:19:45 +02:00
coq-bits = callPackage ../development/coq-modules/coq-bits {};
2019-08-06 11:15:37 +02:00
coq-elpi = callPackage ../development/coq-modules/coq-elpi {};
coq-ext-lib = callPackage ../development/coq-modules/coq-ext-lib {};
coq-haskell = callPackage ../development/coq-modules/coq-haskell { };
coqhammer = callPackage ../development/coq-modules/coqhammer {};
coqprime = callPackage ../development/coq-modules/coqprime {};
coquelicot = callPackage ../development/coq-modules/coquelicot {};
2018-11-29 17:54:24 +01:00
corn = callPackage ../development/coq-modules/corn {};
dpdgraph = callPackage ../development/coq-modules/dpdgraph {};
equations = callPackage ../development/coq-modules/equations { };
fiat_HEAD = callPackage ../development/coq-modules/fiat/HEAD.nix {};
flocq = callPackage ../development/coq-modules/flocq {};
gappalib = callPackage ../development/coq-modules/gappalib {};
heq = callPackage ../development/coq-modules/heq {};
hierarchy-builder = callPackage ../development/coq-modules/hierarchy-builder {};
HoTT = callPackage ../development/coq-modules/HoTT {};
interval = callPackage ../development/coq-modules/interval {};
InfSeqExt = callPackage ../development/coq-modules/InfSeqExt {};
iris = callPackage ../development/coq-modules/iris {};
2019-05-22 11:42:06 +02:00
ltac2 = callPackage ../development/coq-modules/ltac2 {};
math-classes = callPackage ../development/coq-modules/math-classes { };
inherit (callPackage ../development/coq-modules/mathcomp {})
mathcomp_ mathcomp-config
mathcomp ssreflect
mathcomp-ssreflect mathcomp-fingroup mathcomp-algebra
mathcomp-solvable mathcomp-field mathcomp-character
;
inherit (callPackage ../development/coq-modules/mathcomp/extra.nix { })
mathcomp-extra-override mathcomp-extra-config mathcomp-extra
current-mathcomp-extra mathcomp-extra-fast mathcomp-extra-all
mathcomp-finmap mathcomp-bigenough mathcomp-real-closed
mathcomp-analysis multinomials coqeal
;
metalib = callPackage ../development/coq-modules/metalib { };
paco = callPackage ../development/coq-modules/paco {};
2019-02-11 10:04:26 +01:00
paramcoq = callPackage ../development/coq-modules/paramcoq {};
QuickChick = callPackage ../development/coq-modules/QuickChick {};
simple-io = callPackage ../development/coq-modules/simple-io { };
2018-05-15 22:48:20 +02:00
stdpp = callPackage ../development/coq-modules/stdpp { };
StructTact = callPackage ../development/coq-modules/StructTact {};
tlc = callPackage ../development/coq-modules/tlc {};
2018-10-24 02:08:56 +02:00
Velisarios = callPackage ../development/coq-modules/Velisarios {};
Verdi = callPackage ../development/coq-modules/Verdi {};
2020-09-28 23:04:32 +02:00
VST = callPackage ../development/coq-modules/VST {};
filterPackages = filterCoqPackages;
};
filterCoqPackages = coq: set:
lib.listToAttrs (
lib.concatMap (name:
let v = set.${name}; in
let p = v.compatibleCoqVersions or (_: true); in
lib.optional (p coq.coq-version)
(lib.nameValuePair name (
if lib.isAttrs v && v.recurseForDerivations or false
then filterCoqPackages coq v
else v))
) (lib.attrNames set)
);
in rec {
/* The function `mkCoqPackages` takes as input a derivation for Coq and produces
* a set of libraries built with that specific Coq. More libraries are known to
* this function than what is compatible with that version of Coq. Therefore,
* libraries that are not known to be compatible are removed (filtered out) from
* the resulting set. For meta-programming purposes (inpecting the derivations
* rather than building the libraries) this filtering can be disabled by setting
* a `dontFilter` attribute into the Coq derivation.
*/
mkCoqPackages = coq:
let self = lib.makeScope newScope (lib.flip mkCoqPackages' coq); in
if coq.dontFilter or false then self else filterCoqPackages coq self;
coq_8_5 = callPackage ../applications/science/logic/coq {
2018-08-21 23:22:24 +02:00
ocamlPackages = ocamlPackages_4_05;
version = "8.5pl3";
};
2017-12-16 07:14:41 +01:00
coq_8_6 = callPackage ../applications/science/logic/coq {
2018-08-21 23:33:13 +02:00
ocamlPackages = ocamlPackages_4_05;
2017-12-16 07:14:41 +01:00
version = "8.6.1";
};
coq_8_7 = callPackage ../applications/science/logic/coq {
2020-05-22 11:10:17 +02:00
ocamlPackages = ocamlPackages_4_09;
2018-02-16 08:12:01 +01:00
version = "8.7.2";
};
2018-03-21 15:00:47 +01:00
coq_8_8 = callPackage ../applications/science/logic/coq {
2020-05-22 11:10:17 +02:00
ocamlPackages = ocamlPackages_4_09;
2018-09-26 22:26:39 +02:00
version = "8.8.2";
2018-03-21 15:00:47 +01:00
};
2018-11-02 10:09:15 +01:00
coq_8_9 = callPackage ../applications/science/logic/coq {
2020-05-22 11:10:17 +02:00
ocamlPackages = ocamlPackages_4_09;
2019-05-22 11:04:19 +02:00
version = "8.9.1";
2018-11-02 10:09:15 +01:00
};
2019-05-14 10:31:49 +02:00
coq_8_10 = callPackage ../applications/science/logic/coq {
2020-05-22 11:10:17 +02:00
ocamlPackages = ocamlPackages_4_09;
2019-11-29 00:08:51 +01:00
version = "8.10.2";
2019-05-14 10:31:49 +02:00
};
2019-12-07 08:57:20 +01:00
coq_8_11 = callPackage ../applications/science/logic/coq {
2020-05-15 11:43:29 +02:00
version = "8.11.2";
2019-12-07 08:57:20 +01:00
};
2020-06-13 10:16:00 +02:00
coq_8_12 = callPackage ../applications/science/logic/coq {
version = "8.12.0";
2020-06-13 10:16:00 +02:00
};
coqPackages_8_5 = mkCoqPackages coq_8_5;
coqPackages_8_6 = mkCoqPackages coq_8_6;
coqPackages_8_7 = mkCoqPackages coq_8_7;
2018-03-21 15:00:47 +01:00
coqPackages_8_8 = mkCoqPackages coq_8_8;
2018-11-02 10:09:15 +01:00
coqPackages_8_9 = mkCoqPackages coq_8_9;
2019-05-14 10:31:49 +02:00
coqPackages_8_10 = mkCoqPackages coq_8_10;
2019-12-07 08:57:20 +01:00
coqPackages_8_11 = mkCoqPackages coq_8_11;
2020-06-13 10:16:00 +02:00
coqPackages_8_12 = mkCoqPackages coq_8_12;
coqPackages = recurseIntoAttrs (lib.mapDerivationAttrset lib.dontDistribute
2020-08-16 08:24:33 +02:00
coqPackages_8_11
);
coq = coqPackages.coq;
}