at 22.05-pre 28 lines 902 B view raw
1{ lib, mkCoqDerivation, coq, bignums, math-classes, version ? null }: 2 3with 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.13"); out = "8.13.0"; } 9 ] null; 10 release = { 11 "8.8.1".sha256 = "0gh32j0f18vv5lmf6nb87nr5450w6ai06rhrnvlx2wwi79gv10wp"; 12 "8.12.0".sha256 = "0b92vhyzn1j6cs84z2182fn82hxxj0bqq7hk6cs4awwb3vc7dkhi"; 13 "8.13.0".sha256 = "1wzr7mdsnf1rq7q0dvmv55vxzysy85b00ahwbs868bl7m8fk8x5b"; 14 }; 15 16 preConfigure = "patchShebangs ./configure.sh"; 17 configureScript = "./configure.sh"; 18 dontAddPrefix = true; 19 20 propagatedBuildInputs = [ bignums math-classes ]; 21 22 meta = { 23 homepage = "http://c-corn.github.io/"; 24 license = licenses.gpl2; 25 description = "A Coq library for constructive analysis"; 26 maintainers = [ maintainers.vbgl ]; 27 }; 28}