2017-12-15 20:52:16 +01:00
|
|
|
{ stdenv, fetchFromGitHub, coq, bignums }:
|
2017-01-25 22:55:43 +01:00
|
|
|
|
2017-10-29 18:56:03 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
|
|
|
|
name = "coq${coq.coq-version}-math-classes-${version}";
|
2019-07-15 21:36:18 +02:00
|
|
|
version = "8.9.1";
|
2017-01-25 22:55:43 +01:00
|
|
|
|
2017-10-29 18:56:03 +01:00
|
|
|
src = fetchFromGitHub {
|
2018-11-29 11:50:26 +01:00
|
|
|
owner = "coq-community";
|
2017-10-29 18:56:03 +01:00
|
|
|
repo = "math-classes";
|
|
|
|
rev = version;
|
2019-07-15 21:36:18 +02:00
|
|
|
sha256 = "1lw89js07m1wcaycpnyd85sf0snil2rrsfmry9lna2x66ah1mzn5";
|
2017-10-29 18:56:03 +01:00
|
|
|
};
|
2017-07-19 01:09:20 +02:00
|
|
|
|
2017-12-15 20:52:16 +01:00
|
|
|
buildInputs = [ coq bignums ];
|
2017-01-25 22:55:43 +01:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
installFlags = "COQLIB=$(out)/lib/coq/${coq.coq-version}/";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://math-classes.github.io;
|
|
|
|
description = "A library of abstract interfaces for mathematical structures in Coq.";
|
2017-07-19 01:09:20 +02:00
|
|
|
maintainers = with maintainers; [ siddharthist jwiegley ];
|
2017-01-25 22:55:43 +01:00
|
|
|
platforms = coq.meta.platforms;
|
|
|
|
};
|
2017-12-15 20:52:16 +01:00
|
|
|
|
|
|
|
passthru = {
|
2019-07-15 21:36:18 +02:00
|
|
|
compatibleCoqVersions = v: builtins.elem v [ "8.6" "8.7" "8.8" "8.9" "8.10" ];
|
2017-12-15 20:52:16 +01:00
|
|
|
};
|
|
|
|
|
2017-01-25 22:55:43 +01:00
|
|
|
}
|