2018-11-02 10:09:15 +01:00
|
|
|
{ lib, callPackage, newScope, recurseIntoAttrs, ocamlPackages_4_05 }:
|
2017-12-15 20:52:16 +01:00
|
|
|
|
|
|
|
let
|
|
|
|
mkCoqPackages' = self: coq:
|
2019-04-09 01:07:42 +02:00
|
|
|
let newScope = self.newScope;
|
|
|
|
callPackage = self.callPackage; in {
|
|
|
|
inherit coq;
|
2017-12-15 20:52:16 +01:00
|
|
|
coqPackages = self;
|
|
|
|
|
2017-12-22 17:56:20 +01:00
|
|
|
contribs = recurseIntoAttrs
|
|
|
|
(callPackage ../development/coq-modules/contribs {});
|
|
|
|
|
2017-12-15 20:52:16 +01: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-21 00:16:27 +01:00
|
|
|
Cheerios = callPackage ../development/coq-modules/Cheerios {};
|
2017-12-15 20:52:16 +01:00
|
|
|
CoLoR = callPackage ../development/coq-modules/CoLoR {};
|
|
|
|
coq-ext-lib = callPackage ../development/coq-modules/coq-ext-lib {};
|
2019-01-11 20:25:05 +01:00
|
|
|
coq-extensible-records = callPackage ../development/coq-modules/coq-extensible-records {};
|
2017-12-15 20:52:16 +01:00
|
|
|
coq-haskell = callPackage ../development/coq-modules/coq-haskell { };
|
2019-03-22 10:10:55 +01:00
|
|
|
coqhammer = callPackage ../development/coq-modules/coqhammer {};
|
2018-10-01 11:49:11 +02:00
|
|
|
coqprime = callPackage ../development/coq-modules/coqprime {};
|
2017-12-15 20:52:16 +01:00
|
|
|
coquelicot = callPackage ../development/coq-modules/coquelicot {};
|
2018-11-29 17:54:24 +01:00
|
|
|
corn = callPackage ../development/coq-modules/corn {};
|
2017-12-15 20:52:16 +01: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 {};
|
|
|
|
heq = callPackage ../development/coq-modules/heq {};
|
|
|
|
HoTT = callPackage ../development/coq-modules/HoTT {};
|
|
|
|
interval = callPackage ../development/coq-modules/interval {};
|
2018-11-21 00:16:27 +01:00
|
|
|
InfSeqExt = callPackage ../development/coq-modules/InfSeqExt {};
|
2018-05-22 19:26:32 +02:00
|
|
|
iris = callPackage ../development/coq-modules/iris {};
|
2017-12-15 20:52:16 +01:00
|
|
|
math-classes = callPackage ../development/coq-modules/math-classes { };
|
2019-04-09 19:21:57 +02:00
|
|
|
inherit (callPackage ../development/coq-modules/mathcomp { })
|
|
|
|
mathcompGen mathcompGenSingle mathcompCorePkgs_1_7 mathcompCorePkgs_1_8 mathcompCorePkgs
|
|
|
|
mathcomp mathcomp_1_7 mathcomp_1_8 ssreflect
|
|
|
|
mathcomp-ssreflect mathcomp-ssreflect_1_7 mathcomp-ssreflect_1_8
|
|
|
|
mathcomp-fingroup mathcomp-fingroup_1_7 mathcomp-fingroup_1_8
|
|
|
|
mathcomp-algebra mathcomp-algebra_1_7 mathcomp-algebra_1_8
|
|
|
|
mathcomp-solvable mathcomp-solvable_1_7 mathcomp-solvable_1_8
|
|
|
|
mathcomp-field mathcomp-field_1_7 mathcomp-field_1_8
|
|
|
|
mathcomp-character mathcomp-character_1_7 mathcomp-character_1_8;
|
|
|
|
inherit (callPackage ../development/coq-modules/mathcomp/extra.nix { })
|
|
|
|
mathcompExtraGen
|
|
|
|
mathcomp-finmap mathcomp-bigenough mathcomp-analysis mathcomp-multinomials
|
|
|
|
mathcomp_1_7-finmap mathcomp_1_7-bigenough mathcomp_1_7-analysis mathcomp_1_7-multinomials
|
|
|
|
mathcomp_1_7-finmap_1_0
|
|
|
|
mathcomp_1_8-finmap mathcomp_1_8-bigenough mathcomp_1_8-analysis mathcomp_1_8-multinomials
|
|
|
|
multinomials;
|
2017-12-15 20:52:16 +01:00
|
|
|
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 {};
|
2017-12-15 20:52:16 +01:00
|
|
|
QuickChick = callPackage ../development/coq-modules/QuickChick {};
|
2018-12-03 15:45:03 +01:00
|
|
|
simple-io = callPackage ../development/coq-modules/simple-io { };
|
2018-05-15 22:48:20 +02:00
|
|
|
stdpp = callPackage ../development/coq-modules/stdpp { };
|
2018-11-21 00:16:27 +01:00
|
|
|
StructTact = callPackage ../development/coq-modules/StructTact {};
|
2017-12-19 15:26:11 +01:00
|
|
|
tlc = callPackage ../development/coq-modules/tlc {};
|
2018-10-24 02:08:56 +02:00
|
|
|
Velisarios = callPackage ../development/coq-modules/Velisarios {};
|
2018-11-21 00:16:27 +01:00
|
|
|
Verdi = callPackage ../development/coq-modules/Verdi {};
|
2017-12-15 20:52:16 +01:00
|
|
|
};
|
|
|
|
|
2018-12-01 19:15:42 +01: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 20:52:16 +01:00
|
|
|
);
|
|
|
|
|
|
|
|
in rec {
|
|
|
|
|
2018-11-04 18:39:09 +01: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 20:52:16 +01:00
|
|
|
mkCoqPackages = coq:
|
2019-04-09 01:07:42 +02:00
|
|
|
let self = lib.makeScope newScope (lib.flip mkCoqPackages' coq); in
|
2018-11-04 18:39:09 +01:00
|
|
|
if coq.dontFilter or false then self
|
|
|
|
else filterCoqPackages coq self;
|
2017-12-15 20:52:16 +01:00
|
|
|
|
|
|
|
coq_8_5 = callPackage ../applications/science/logic/coq {
|
2018-08-21 23:22:24 +02:00
|
|
|
ocamlPackages = ocamlPackages_4_05;
|
2017-12-15 20:52:16 +01:00
|
|
|
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";
|
2017-12-15 20:52:16 +01:00
|
|
|
};
|
2017-12-21 10:24:35 +01:00
|
|
|
coq_8_7 = callPackage ../applications/science/logic/coq {
|
2018-02-16 08:12:01 +01:00
|
|
|
version = "8.7.2";
|
2017-12-21 10:24:35 +01:00
|
|
|
};
|
2018-03-21 15:00:47 +01:00
|
|
|
coq_8_8 = callPackage ../applications/science/logic/coq {
|
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 {
|
2019-01-18 16:55:07 +01:00
|
|
|
version = "8.9.0";
|
2018-11-02 10:09:15 +01:00
|
|
|
};
|
2019-05-14 10:31:49 +02:00
|
|
|
coq_8_10 = callPackage ../applications/science/logic/coq {
|
|
|
|
version = "8.10+beta1";
|
|
|
|
};
|
2017-12-15 20:52:16 +01: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;
|
2018-11-26 03:21:01 +01:00
|
|
|
coqPackages = recurseIntoAttrs (lib.mapDerivationAttrset lib.dontDistribute
|
|
|
|
coqPackages_8_8
|
|
|
|
);
|
2017-12-15 20:52:16 +01:00
|
|
|
coq = coqPackages.coq;
|
|
|
|
|
|
|
|
}
|