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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

167 lines
8.6 KiB
Nix
Raw Normal View History

{ lib, stdenv, callPackage, newScope, recurseIntoAttrs, ocamlPackages_4_05, ocamlPackages_4_09
, ocamlPackages_4_10, ocamlPackages_4_12, fetchpatch, makeWrapper, coq2html
2020-08-28 22:05:46 +01:00
}@args:
let lib = import ../build-support/coq/extra-lib.nix {inherit (args) lib;}; in
let
mkCoqPackages' = self: coq:
let callPackage = self.callPackage; in {
2020-08-28 22:05:46 +01:00
inherit coq lib;
coqPackages = self;
2020-08-28 22:05:46 +01:00
mkCoqDerivation = callPackage ../build-support/coq {};
contribs = recurseIntoAttrs
(callPackage ../development/coq-modules/contribs {});
2021-05-09 16:49:12 +01:00
aac-tactics = callPackage ../development/coq-modules/aac-tactics {};
addition-chains = callPackage ../development/coq-modules/addition-chains {};
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 { };
2021-09-15 11:54:46 +01:00
ceres = callPackage ../development/coq-modules/ceres {};
Cheerios = callPackage ../development/coq-modules/Cheerios {};
CoLoR = callPackage ../development/coq-modules/CoLoR {};
compcert = callPackage ../development/coq-modules/compcert {
inherit fetchpatch makeWrapper coq2html lib stdenv;
};
2019-10-22 19:19:45 +01:00
coq-bits = callPackage ../development/coq-modules/coq-bits {};
2019-08-06 10:15:37 +01: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 { };
2021-11-24 14:51:08 +00:00
coq-record-update = callPackage ../development/coq-modules/coq-record-update { };
2020-08-28 22:05:46 +01:00
coqeal = callPackage ../development/coq-modules/coqeal {};
coqhammer = callPackage ../development/coq-modules/coqhammer {};
coqprime = callPackage ../development/coq-modules/coqprime {};
2021-04-08 18:52:35 +01:00
coqtail-math = callPackage ../development/coq-modules/coqtail-math {};
coquelicot = callPackage ../development/coq-modules/coquelicot {};
2018-11-29 16:54:24 +00:00
corn = callPackage ../development/coq-modules/corn {};
2021-10-19 20:52:17 +01:00
deriving = callPackage ../development/coq-modules/deriving {};
dpdgraph = callPackage ../development/coq-modules/dpdgraph {};
equations = callPackage ../development/coq-modules/equations { };
2021-10-19 20:52:23 +01:00
extructures = callPackage ../development/coq-modules/extructures { };
fiat_HEAD = callPackage ../development/coq-modules/fiat/HEAD.nix {};
flocq = callPackage ../development/coq-modules/flocq {};
2021-03-12 17:31:11 +00:00
fourcolor = callPackage ../development/coq-modules/fourcolor {};
gaia = callPackage ../development/coq-modules/gaia {};
2021-10-18 10:42:52 +01:00
gaia-hydras = callPackage ../development/coq-modules/gaia-hydras {};
gappalib = callPackage ../development/coq-modules/gappalib {};
2021-05-08 18:17:50 +01:00
goedel = callPackage ../development/coq-modules/goedel {};
2021-05-09 17:25:17 +01:00
graph-theory = callPackage ../development/coq-modules/graph-theory {};
heq = callPackage ../development/coq-modules/heq {};
hierarchy-builder = callPackage ../development/coq-modules/hierarchy-builder {};
HoTT = callPackage ../development/coq-modules/HoTT {};
2021-05-08 17:55:56 +01:00
hydra-battles = callPackage ../development/coq-modules/hydra-battles {};
interval = callPackage ../development/coq-modules/interval {};
InfSeqExt = callPackage ../development/coq-modules/InfSeqExt {};
iris = callPackage ../development/coq-modules/iris {};
2021-07-01 11:47:16 +01:00
itauto = callPackage ../development/coq-modules/itauto { };
2021-04-14 09:33:05 +01:00
ITree = callPackage ../development/coq-modules/ITree { };
2022-02-03 13:21:13 +00:00
LibHyps = callPackage ../development/coq-modules/LibHyps {};
2019-05-22 10:42:06 +01:00
ltac2 = callPackage ../development/coq-modules/ltac2 {};
math-classes = callPackage ../development/coq-modules/math-classes { };
2020-08-28 22:05:46 +01:00
mathcomp = callPackage ../development/coq-modules/mathcomp {};
ssreflect = self.mathcomp.ssreflect;
mathcomp-ssreflect = self.mathcomp.ssreflect;
mathcomp-fingroup = self.mathcomp.fingroup;
mathcomp-algebra = self.mathcomp.algebra;
mathcomp-solvable = self.mathcomp.solvable;
mathcomp-field = self.mathcomp.field;
mathcomp-character = self.mathcomp.character;
mathcomp-abel = callPackage ../development/coq-modules/mathcomp-abel {};
2020-08-28 22:05:46 +01:00
mathcomp-analysis = callPackage ../development/coq-modules/mathcomp-analysis {};
mathcomp-finmap = callPackage ../development/coq-modules/mathcomp-finmap {};
mathcomp-bigenough = callPackage ../development/coq-modules/mathcomp-bigenough {};
mathcomp-real-closed = callPackage ../development/coq-modules/mathcomp-real-closed {};
2021-12-17 09:02:55 +00:00
mathcomp-word = callPackage ../development/coq-modules/mathcomp-word {};
mathcomp-zify = callPackage ../development/coq-modules/mathcomp-zify {};
2021-10-28 15:17:24 +01:00
mathcomp-tarjan = callPackage ../development/coq-modules/mathcomp-tarjan {};
metacoq = callPackage ../development/coq-modules/metacoq { };
metalib = callPackage ../development/coq-modules/metalib { };
2020-08-28 22:05:46 +01:00
multinomials = callPackage ../development/coq-modules/multinomials {};
2021-03-30 09:34:14 +01:00
odd-order = callPackage ../development/coq-modules/odd-order { };
paco = callPackage ../development/coq-modules/paco {};
2019-02-11 09:04:26 +00:00
paramcoq = callPackage ../development/coq-modules/paramcoq {};
2021-09-15 11:55:00 +01:00
parsec = callPackage ../development/coq-modules/parsec {};
pocklington = callPackage ../development/coq-modules/pocklington {};
QuickChick = callPackage ../development/coq-modules/QuickChick {};
2021-06-07 18:22:36 +01:00
reglang = callPackage ../development/coq-modules/reglang {};
2021-05-09 16:49:35 +01:00
relation-algebra = callPackage ../development/coq-modules/relation-algebra {};
2021-06-20 09:57:51 +01:00
semantics = callPackage ../development/coq-modules/semantics {};
serapi = callPackage ../development/coq-modules/serapi {};
simple-io = callPackage ../development/coq-modules/simple-io { };
2021-11-07 00:55:25 +00:00
smpl = callPackage ../development/coq-modules/smpl { };
2022-02-28 21:33:47 +00:00
smtcoq = callPackage ../development/coq-modules/smtcoq { };
2018-05-15 21:48:20 +01:00
stdpp = callPackage ../development/coq-modules/stdpp { };
StructTact = callPackage ../development/coq-modules/StructTact {};
tlc = callPackage ../development/coq-modules/tlc {};
2021-05-09 17:03:43 +01:00
topology = callPackage ../development/coq-modules/topology {};
2022-02-28 21:33:12 +00:00
trakt = callPackage ../development/coq-modules/trakt {};
2018-10-24 01:08:56 +01:00
Velisarios = callPackage ../development/coq-modules/Velisarios {};
Verdi = callPackage ../development/coq-modules/Verdi {};
2022-02-09 05:19:54 +00:00
VST = callPackage ../development/coq-modules/VST {};
2021-05-24 13:44:44 +01:00
zorns-lemma = callPackage ../development/coq-modules/zorns-lemma {};
2020-08-28 22:05:46 +01:00
filterPackages = doesFilter: if doesFilter then filterCoqPackages self else self;
};
2020-08-28 22:05:46 +01:00
filterCoqPackages = set:
lib.listToAttrs (
2020-08-28 22:05:46 +01:00
lib.concatMap (name: let v = set.${name} or null; in
lib.optional (! v.meta.coqFilter or false)
(lib.nameValuePair name (
if lib.isAttrs v && v.recurseForDerivations or false
then filterCoqPackages v
else v))
) (lib.attrNames set)
);
2020-08-28 22:05:46 +01:00
mkCoq = version: callPackage ../applications/science/logic/coq {
inherit version
ocamlPackages_4_05
ocamlPackages_4_09
ocamlPackages_4_10
ocamlPackages_4_12
;
2020-08-28 22:05:46 +01:00
};
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
2020-08-28 22:05:46 +01:00
self.filterPackages (! coq.dontFilter or false);
2020-08-28 22:05:46 +01:00
coq_8_5 = mkCoq "8.5";
coq_8_6 = mkCoq "8.6";
coq_8_7 = mkCoq "8.7";
coq_8_8 = mkCoq "8.8";
coq_8_9 = mkCoq "8.9";
coq_8_10 = mkCoq "8.10";
coq_8_11 = mkCoq "8.11";
coq_8_12 = mkCoq "8.12";
coq_8_13 = mkCoq "8.13";
2021-09-27 20:52:40 +01:00
coq_8_14 = mkCoq "8.14";
2021-12-08 17:06:40 +00:00
coq_8_15 = mkCoq "8.15";
coqPackages_8_5 = mkCoqPackages coq_8_5;
coqPackages_8_6 = mkCoqPackages coq_8_6;
coqPackages_8_7 = mkCoqPackages coq_8_7;
2018-03-21 14:00:47 +00:00
coqPackages_8_8 = mkCoqPackages coq_8_8;
2018-11-02 09:09:15 +00:00
coqPackages_8_9 = mkCoqPackages coq_8_9;
2019-05-14 09:31:49 +01:00
coqPackages_8_10 = mkCoqPackages coq_8_10;
2019-12-07 07:57:20 +00:00
coqPackages_8_11 = mkCoqPackages coq_8_11;
2020-06-13 09:16:00 +01:00
coqPackages_8_12 = mkCoqPackages coq_8_12;
2020-12-09 07:32:51 +00:00
coqPackages_8_13 = mkCoqPackages coq_8_13;
2021-09-27 20:52:40 +01:00
coqPackages_8_14 = mkCoqPackages coq_8_14;
2021-12-08 17:06:40 +00:00
coqPackages_8_15 = mkCoqPackages coq_8_15;
2022-05-07 06:29:49 +01:00
coqPackages = recurseIntoAttrs coqPackages_8_15;
coq = coqPackages.coq;
}