2020-05-22 02:10:17 -07:00
|
|
|
{ lib, callPackage, newScope, recurseIntoAttrs, ocamlPackages_4_05, ocamlPackages_4_09 }:
|
2017-12-15 11:52:16 -08:00
|
|
|
|
|
|
|
let
|
|
|
|
mkCoqPackages' = self: coq:
|
2019-06-16 12:59:06 -07:00
|
|
|
let callPackage = self.callPackage; in {
|
2019-04-08 16:07:42 -07:00
|
|
|
inherit coq;
|
2017-12-15 11:52:16 -08:00
|
|
|
coqPackages = self;
|
|
|
|
|
2017-12-22 08:56:20 -08:00
|
|
|
contribs = recurseIntoAttrs
|
|
|
|
(callPackage ../development/coq-modules/contribs {});
|
|
|
|
|
2017-12-15 11:52:16 -08:00
|
|
|
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 { };
|
2018-11-20 15:16:27 -08:00
|
|
|
Cheerios = callPackage ../development/coq-modules/Cheerios {};
|
2017-12-15 11:52:16 -08:00
|
|
|
CoLoR = callPackage ../development/coq-modules/CoLoR {};
|
2019-10-22 11:19:45 -07:00
|
|
|
coq-bits = callPackage ../development/coq-modules/coq-bits {};
|
2019-08-06 02:15:37 -07:00
|
|
|
coq-elpi = callPackage ../development/coq-modules/coq-elpi {};
|
2017-12-15 11:52:16 -08:00
|
|
|
coq-ext-lib = callPackage ../development/coq-modules/coq-ext-lib {};
|
2019-01-11 11:25:05 -08:00
|
|
|
coq-extensible-records = callPackage ../development/coq-modules/coq-extensible-records {};
|
2017-12-15 11:52:16 -08:00
|
|
|
coq-haskell = callPackage ../development/coq-modules/coq-haskell { };
|
2019-03-22 02:10:55 -07:00
|
|
|
coqhammer = callPackage ../development/coq-modules/coqhammer {};
|
2018-10-01 02:49:11 -07:00
|
|
|
coqprime = callPackage ../development/coq-modules/coqprime {};
|
2017-12-15 11:52:16 -08:00
|
|
|
coquelicot = callPackage ../development/coq-modules/coquelicot {};
|
2018-11-29 08:54:24 -08:00
|
|
|
corn = callPackage ../development/coq-modules/corn {};
|
2017-12-15 11:52:16 -08:00
|
|
|
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 {};
|
2019-06-13 08:25:38 -07:00
|
|
|
gappalib = callPackage ../development/coq-modules/gappalib {};
|
2017-12-15 11:52:16 -08:00
|
|
|
heq = callPackage ../development/coq-modules/heq {};
|
2020-03-10 07:21:07 -07:00
|
|
|
hierarchy-builder = callPackage ../development/coq-modules/hierarchy-builder {};
|
2017-12-15 11:52:16 -08:00
|
|
|
HoTT = callPackage ../development/coq-modules/HoTT {};
|
|
|
|
interval = callPackage ../development/coq-modules/interval {};
|
2018-11-20 15:16:27 -08:00
|
|
|
InfSeqExt = callPackage ../development/coq-modules/InfSeqExt {};
|
2018-05-22 10:26:32 -07:00
|
|
|
iris = callPackage ../development/coq-modules/iris {};
|
2019-05-22 02:42:06 -07:00
|
|
|
ltac2 = callPackage ../development/coq-modules/ltac2 {};
|
2017-12-15 11:52:16 -08:00
|
|
|
math-classes = callPackage ../development/coq-modules/math-classes { };
|
2020-03-10 07:21:07 -07:00
|
|
|
inherit (callPackage ../development/coq-modules/mathcomp {})
|
2020-05-08 22:47:47 -07:00
|
|
|
mathcomp_ mathcomp-config
|
|
|
|
mathcomp ssreflect
|
2019-05-23 06:45:28 -07:00
|
|
|
mathcomp-ssreflect mathcomp-fingroup mathcomp-algebra
|
|
|
|
mathcomp-solvable mathcomp-field mathcomp-character
|
2020-05-08 22:47:47 -07:00
|
|
|
;
|
2019-04-09 10:21:57 -07:00
|
|
|
inherit (callPackage ../development/coq-modules/mathcomp/extra.nix { })
|
2020-05-08 22:47:47 -07:00
|
|
|
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
|
|
|
|
;
|
2017-12-15 11:52:16 -08:00
|
|
|
metalib = callPackage ../development/coq-modules/metalib { };
|
|
|
|
paco = callPackage ../development/coq-modules/paco {};
|
2019-02-11 01:04:26 -08:00
|
|
|
paramcoq = callPackage ../development/coq-modules/paramcoq {};
|
2017-12-15 11:52:16 -08:00
|
|
|
QuickChick = callPackage ../development/coq-modules/QuickChick {};
|
2018-12-03 06:45:03 -08:00
|
|
|
simple-io = callPackage ../development/coq-modules/simple-io { };
|
2018-05-15 13:48:20 -07:00
|
|
|
stdpp = callPackage ../development/coq-modules/stdpp { };
|
2018-11-20 15:16:27 -08:00
|
|
|
StructTact = callPackage ../development/coq-modules/StructTact {};
|
2017-12-19 06:26:11 -08:00
|
|
|
tlc = callPackage ../development/coq-modules/tlc {};
|
2018-10-23 17:08:56 -07:00
|
|
|
Velisarios = callPackage ../development/coq-modules/Velisarios {};
|
2018-11-20 15:16:27 -08:00
|
|
|
Verdi = callPackage ../development/coq-modules/Verdi {};
|
2020-05-08 22:47:47 -07:00
|
|
|
|
|
|
|
filterPackages = filterCoqPackages;
|
2017-12-15 11:52:16 -08:00
|
|
|
};
|
|
|
|
|
2018-12-01 10:15:42 -08:00
|
|
|
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)
|
2017-12-15 11:52:16 -08:00
|
|
|
);
|
|
|
|
|
|
|
|
in rec {
|
|
|
|
|
2018-11-04 09:39:09 -08:00
|
|
|
/* 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.
|
|
|
|
*/
|
2017-12-15 11:52:16 -08:00
|
|
|
mkCoqPackages = coq:
|
2019-04-08 16:07:42 -07:00
|
|
|
let self = lib.makeScope newScope (lib.flip mkCoqPackages' coq); in
|
2020-05-08 22:47:47 -07:00
|
|
|
if coq.dontFilter or false then self else filterCoqPackages coq self;
|
2017-12-15 11:52:16 -08:00
|
|
|
|
|
|
|
coq_8_5 = callPackage ../applications/science/logic/coq {
|
2018-08-21 14:22:24 -07:00
|
|
|
ocamlPackages = ocamlPackages_4_05;
|
2017-12-15 11:52:16 -08:00
|
|
|
version = "8.5pl3";
|
|
|
|
};
|
2017-12-15 22:14:41 -08:00
|
|
|
coq_8_6 = callPackage ../applications/science/logic/coq {
|
2018-08-21 14:33:13 -07:00
|
|
|
ocamlPackages = ocamlPackages_4_05;
|
2017-12-15 22:14:41 -08:00
|
|
|
version = "8.6.1";
|
2017-12-15 11:52:16 -08:00
|
|
|
};
|
2017-12-21 01:24:35 -08:00
|
|
|
coq_8_7 = callPackage ../applications/science/logic/coq {
|
2020-05-22 02:10:17 -07:00
|
|
|
ocamlPackages = ocamlPackages_4_09;
|
2018-02-15 23:12:01 -08:00
|
|
|
version = "8.7.2";
|
2017-12-21 01:24:35 -08:00
|
|
|
};
|
2018-03-21 07:00:47 -07:00
|
|
|
coq_8_8 = callPackage ../applications/science/logic/coq {
|
2020-05-22 02:10:17 -07:00
|
|
|
ocamlPackages = ocamlPackages_4_09;
|
2018-09-26 13:26:39 -07:00
|
|
|
version = "8.8.2";
|
2018-03-21 07:00:47 -07:00
|
|
|
};
|
2018-11-02 02:09:15 -07:00
|
|
|
coq_8_9 = callPackage ../applications/science/logic/coq {
|
2020-05-22 02:10:17 -07:00
|
|
|
ocamlPackages = ocamlPackages_4_09;
|
2019-05-22 02:04:19 -07:00
|
|
|
version = "8.9.1";
|
2018-11-02 02:09:15 -07:00
|
|
|
};
|
2019-05-14 01:31:49 -07:00
|
|
|
coq_8_10 = callPackage ../applications/science/logic/coq {
|
2020-05-22 02:10:17 -07:00
|
|
|
ocamlPackages = ocamlPackages_4_09;
|
2019-11-28 15:08:51 -08:00
|
|
|
version = "8.10.2";
|
2019-05-14 01:31:49 -07:00
|
|
|
};
|
2019-12-06 23:57:20 -08:00
|
|
|
coq_8_11 = callPackage ../applications/science/logic/coq {
|
2020-05-15 02:43:29 -07:00
|
|
|
version = "8.11.2";
|
2019-12-06 23:57:20 -08:00
|
|
|
};
|
2020-06-13 01:16:00 -07:00
|
|
|
coq_8_12 = callPackage ../applications/science/logic/coq {
|
|
|
|
version = "8.12+beta1";
|
|
|
|
};
|
2017-12-15 11:52:16 -08: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 07:00:47 -07:00
|
|
|
coqPackages_8_8 = mkCoqPackages coq_8_8;
|
2018-11-02 02:09:15 -07:00
|
|
|
coqPackages_8_9 = mkCoqPackages coq_8_9;
|
2019-05-14 01:31:49 -07:00
|
|
|
coqPackages_8_10 = mkCoqPackages coq_8_10;
|
2019-12-06 23:57:20 -08:00
|
|
|
coqPackages_8_11 = mkCoqPackages coq_8_11;
|
2020-06-13 01:16:00 -07:00
|
|
|
coqPackages_8_12 = mkCoqPackages coq_8_12;
|
2018-11-25 18:21:01 -08:00
|
|
|
coqPackages = recurseIntoAttrs (lib.mapDerivationAttrset lib.dontDistribute
|
2019-08-14 05:50:22 -07:00
|
|
|
coqPackages_8_9
|
2018-11-25 18:21:01 -08:00
|
|
|
);
|
2017-12-15 11:52:16 -08:00
|
|
|
coq = coqPackages.coq;
|
|
|
|
|
|
|
|
}
|