Merge pull request #119126 from fabaff/pycomfoconnect
[NixPkgs.git] / pkgs / development / coq-modules / corn / default.nix
blob6910f487c64ea81c8c0e84aa5ccdbde7c52cd7b4
1 { lib, mkCoqDerivation, coq, bignums, math-classes, version ? null }:
3 with lib; mkCoqDerivation rec {
4   pname = "corn";
5   inherit version;
6   defaultVersion = switch coq.coq-version [
7     { case = "8.6"; out = "8.8.1"; }
8     { case = (versions.range "8.7" "8.12"); out = "8.12.0"; }
9   ] null;
10   release = {
11     "8.8.1".sha256 = "0gh32j0f18vv5lmf6nb87nr5450w6ai06rhrnvlx2wwi79gv10wp";
12     "8.12.0".sha256 = "0b92vhyzn1j6cs84z2182fn82hxxj0bqq7hk6cs4awwb3vc7dkhi";
13   };
15   preConfigure = "patchShebangs ./configure.sh";
16   configureScript = "./configure.sh";
17   dontAddPrefix = true;
19   propagatedBuildInputs = [ bignums math-classes ];
21   meta = {
22     homepage = "http://c-corn.github.io/";
23     license = licenses.gpl2;
24     description = "A Coq library for constructive analysis";
25     maintainers = [ maintainers.vbgl ];
26   };