1{ stdenv, fetchFromGitHub, coq, bignums }:
2
3stdenv.mkDerivation rec {
4
5 name = "coq${coq.coq-version}-math-classes-${version}";
6 version = "8.8.1";
7
8 src = fetchFromGitHub {
9 owner = "coq-community";
10 repo = "math-classes";
11 rev = version;
12 sha256 = "05vlrrwnlfhd7l3xwn4zwpnkwvziw84zpd9775c6ffb83z48ri1r";
13 };
14
15 buildInputs = [ coq bignums ];
16 enableParallelBuilding = true;
17 installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
18
19 meta = with stdenv.lib; {
20 homepage = https://math-classes.github.io;
21 description = "A library of abstract interfaces for mathematical structures in Coq.";
22 maintainers = with maintainers; [ siddharthist jwiegley ];
23 platforms = coq.meta.platforms;
24 };
25
26 passthru = {
27 compatibleCoqVersions = v: stdenv.lib.versionAtLeast v "8.6";
28 };
29
30}