nixpkgs/pkgs/development/coq-modules/corn/default.nix

30 lines
1.0 KiB
Nix
Raw Normal View History

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"; }
{ case = (versions.range "8.7" "8.12"); out = "8.12.0"; }
2021-07-28 10:48:18 +01:00
{ case = (versions.range "8.13" "8.13"); out = "c366d3f01ec1812b145117a4da940518b092d3a6"; }
2021-01-21 17:00:33 +00:00
] null;
release = {
"8.8.1".sha256 = "0gh32j0f18vv5lmf6nb87nr5450w6ai06rhrnvlx2wwi79gv10wp";
"8.12.0".sha256 = "0b92vhyzn1j6cs84z2182fn82hxxj0bqq7hk6cs4awwb3vc7dkhi";
2021-07-28 10:48:18 +01:00
"c366d3f01ec1812b145117a4da940518b092d3a6".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 = {
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
};
}