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

28 lines
824 B
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"; }
] null;
release = {
"8.8.1".sha256 = "0gh32j0f18vv5lmf6nb87nr5450w6ai06rhrnvlx2wwi79gv10wp";
"8.12.0".sha256 = "0b92vhyzn1j6cs84z2182fn82hxxj0bqq7hk6cs4awwb3vc7dkhi";
};
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
};
}