2018-11-02 12:09:15 +03:00
|
|
|
{ lib, callPackage, newScope, recurseIntoAttrs, ocamlPackages_4_05 }:
|
2017-12-15 22:52:16 +03:00
|
|
|
|
|
|
|
let
|
|
|
|
mkCoqPackages' = self: coq:
|
|
|
|
let callPackage = newScope self ; in rec {
|
|
|
|
inherit callPackage coq;
|
|
|
|
coqPackages = self;
|
|
|
|
|
2017-12-22 19:56:20 +03:00
|
|
|
contribs = recurseIntoAttrs
|
|
|
|
(callPackage ../development/coq-modules/contribs {});
|
|
|
|
|
2017-12-15 22:52:16 +03: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 { };
|
|
|
|
CoLoR = callPackage ../development/coq-modules/CoLoR {};
|
|
|
|
coq-ext-lib = callPackage ../development/coq-modules/coq-ext-lib {};
|
|
|
|
coq-haskell = callPackage ../development/coq-modules/coq-haskell { };
|
2018-10-01 12:49:11 +03:00
|
|
|
coqprime = callPackage ../development/coq-modules/coqprime {};
|
2017-12-15 22:52:16 +03:00
|
|
|
coquelicot = callPackage ../development/coq-modules/coquelicot {};
|
|
|
|
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-05-22 20:26:32 +03:00
|
|
|
iris = callPackage ../development/coq-modules/iris {};
|
2017-12-15 22:52:16 +03:00
|
|
|
math-classes = callPackage ../development/coq-modules/math-classes { };
|
|
|
|
mathcomp = callPackage ../development/coq-modules/mathcomp { };
|
|
|
|
metalib = callPackage ../development/coq-modules/metalib { };
|
2017-12-18 04:28:57 +03:00
|
|
|
multinomials = callPackage ../development/coq-modules/multinomials {};
|
2017-12-15 22:52:16 +03:00
|
|
|
paco = callPackage ../development/coq-modules/paco {};
|
|
|
|
QuickChick = callPackage ../development/coq-modules/QuickChick {};
|
|
|
|
ssreflect = callPackage ../development/coq-modules/ssreflect { };
|
2018-05-15 23:48:20 +03:00
|
|
|
stdpp = callPackage ../development/coq-modules/stdpp { };
|
2017-12-19 17:26:11 +03:00
|
|
|
tlc = callPackage ../development/coq-modules/tlc {};
|
2018-10-24 03:08:56 +03:00
|
|
|
Velisarios = callPackage ../development/coq-modules/Velisarios {};
|
2017-12-15 22:52:16 +03:00
|
|
|
};
|
|
|
|
|
|
|
|
filterCoqPackages = coq:
|
2017-12-22 19:56:20 +03:00
|
|
|
lib.filterAttrsRecursive
|
2017-12-15 22:52:16 +03:00
|
|
|
(_: p:
|
|
|
|
let pred = p.compatibleCoqVersions or (_: true);
|
|
|
|
in pred coq.coq-version
|
|
|
|
);
|
|
|
|
|
|
|
|
in rec {
|
|
|
|
|
2018-11-04 20:39:09 +03: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 22:52:16 +03:00
|
|
|
mkCoqPackages = coq:
|
|
|
|
let self = mkCoqPackages' self coq; in
|
2018-11-04 20:39:09 +03:00
|
|
|
if coq.dontFilter or false then self
|
|
|
|
else filterCoqPackages coq self;
|
2017-12-15 22:52:16 +03:00
|
|
|
|
|
|
|
coq_8_5 = callPackage ../applications/science/logic/coq {
|
2018-08-22 00:22:24 +03:00
|
|
|
ocamlPackages = ocamlPackages_4_05;
|
2017-12-15 22:52:16 +03:00
|
|
|
version = "8.5pl3";
|
|
|
|
};
|
2017-12-16 09:14:41 +03:00
|
|
|
coq_8_6 = callPackage ../applications/science/logic/coq {
|
2018-08-22 00:33:13 +03:00
|
|
|
ocamlPackages = ocamlPackages_4_05;
|
2017-12-16 09:14:41 +03:00
|
|
|
version = "8.6.1";
|
2017-12-15 22:52:16 +03:00
|
|
|
};
|
2017-12-21 12:24:35 +03:00
|
|
|
coq_8_7 = callPackage ../applications/science/logic/coq {
|
2018-02-16 10:12:01 +03:00
|
|
|
version = "8.7.2";
|
2017-12-21 12:24:35 +03:00
|
|
|
};
|
2018-03-21 17:00:47 +03:00
|
|
|
coq_8_8 = callPackage ../applications/science/logic/coq {
|
2018-09-26 23:26:39 +03:00
|
|
|
version = "8.8.2";
|
2018-03-21 17:00:47 +03:00
|
|
|
};
|
2018-11-02 12:09:15 +03:00
|
|
|
coq_8_9 = callPackage ../applications/science/logic/coq {
|
|
|
|
version = "8.9+beta1";
|
|
|
|
};
|
2017-12-15 22:52:16 +03: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 17:00:47 +03:00
|
|
|
coqPackages_8_8 = mkCoqPackages coq_8_8;
|
2018-11-02 12:09:15 +03:00
|
|
|
coqPackages_8_9 = mkCoqPackages coq_8_9;
|
2018-08-07 15:58:23 +03:00
|
|
|
coqPackages = coqPackages_8_8;
|
2017-12-15 22:52:16 +03:00
|
|
|
coq = coqPackages.coq;
|
|
|
|
|
|
|
|
}
|