2017-10-29 18:56:03 +01:00
|
|
|
{ stdenv, fetchFromGitHub, coq, coqPackages }:
|
2017-01-25 22:55:43 +01:00
|
|
|
|
2017-10-29 18:56:03 +01:00
|
|
|
if ! stdenv.lib.versionAtLeast coq.coq-version "8.6" then
|
|
|
|
throw "Math-Classes requires Coq 8.6 or later."
|
|
|
|
else
|
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}";
|
|
|
|
version = "1.0.7";
|
2017-01-25 22:55:43 +01:00
|
|
|
|
2017-10-29 18:56:03 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "math-classes";
|
|
|
|
repo = "math-classes";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0wgnczacvkb2pc3vjbni9bwjijfyd5jcdnyyjg8185hkf9zzabgi";
|
|
|
|
};
|
2017-07-19 01:09:20 +02:00
|
|
|
|
2017-10-29 18:56:03 +01:00
|
|
|
buildInputs = [ coq coqPackages.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;
|
|
|
|
};
|
|
|
|
}
|