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