2020-08-28 22:05:46 +01:00
|
|
|
{ lib, mkCoqDerivation, coq, bignums, math-classes, version ? null }:
|
2018-11-29 16:54:24 +00:00
|
|
|
|
2020-08-28 22:05:46 +01:00
|
|
|
with lib; mkCoqDerivation rec {
|
2018-11-29 16:54:24 +00:00
|
|
|
pname = "corn";
|
2020-08-28 22:05:46 +01:00
|
|
|
inherit version;
|
2021-01-21 17:00:33 +00:00
|
|
|
defaultVersion = switch coq.coq-version [
|
|
|
|
{ case = "8.6"; out = "8.8.1"; }
|
2021-09-07 15:21:34 +01:00
|
|
|
{ case = (versions.range "8.7" "8.13"); out = "8.13.0"; }
|
2021-01-21 17:00:33 +00:00
|
|
|
] null;
|
|
|
|
release = {
|
|
|
|
"8.8.1".sha256 = "0gh32j0f18vv5lmf6nb87nr5450w6ai06rhrnvlx2wwi79gv10wp";
|
|
|
|
"8.12.0".sha256 = "0b92vhyzn1j6cs84z2182fn82hxxj0bqq7hk6cs4awwb3vc7dkhi";
|
2021-09-07 15:21:34 +01:00
|
|
|
"8.13.0".sha256 = "1wzr7mdsnf1rq7q0dvmv55vxzysy85b00ahwbs868bl7m8fk8x5b";
|
2021-01-21 17:00:33 +00:00
|
|
|
};
|
2018-11-29 16:54:24 +00:00
|
|
|
|
|
|
|
preConfigure = "patchShebangs ./configure.sh";
|
|
|
|
configureScript = "./configure.sh";
|
|
|
|
dontAddPrefix = true;
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ bignums math-classes ];
|
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://c-corn.github.io/";
|
2020-08-28 22:05:46 +01:00
|
|
|
license = licenses.gpl2;
|
2018-11-29 16:54:24 +00:00
|
|
|
description = "A Coq library for constructive analysis";
|
2020-08-28 22:05:46 +01:00
|
|
|
maintainers = [ maintainers.vbgl ];
|
2018-11-29 16:54:24 +00:00
|
|
|
};
|
|
|
|
}
|