Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 33 lines 1.3 kB view raw
1{ lib, mkCoqDerivation, coq, bignums, math-classes, version ? null }: 2 3mkCoqDerivation rec { 4 pname = "corn"; 5 inherit version; 6 defaultVersion = with lib.versions; lib.switch coq.coq-version [ 7 { case = (range "8.17" "8.20"); out = "8.19.0"; } 8 { case = (range "8.14" "8.18"); out = "8.18.0"; } 9 { case = (range "8.11" "8.17"); out = "8.16.0"; } 10 { case = (range "8.7" "8.15"); out = "8.13.0"; } 11 { case = "8.6"; out = "8.8.1"; } 12 ] null; 13 release = { 14 "8.8.1".sha256 = "0gh32j0f18vv5lmf6nb87nr5450w6ai06rhrnvlx2wwi79gv10wp"; 15 "8.12.0".sha256 = "0b92vhyzn1j6cs84z2182fn82hxxj0bqq7hk6cs4awwb3vc7dkhi"; 16 "8.13.0".sha256 = "1wzr7mdsnf1rq7q0dvmv55vxzysy85b00ahwbs868bl7m8fk8x5b"; 17 "8.16.0".sha256 = "sha256-ZE/EEIndxHfo/9Me5NX4ZfcH0ZAQ4sRfZY7LRZfLXBQ="; 18 "8.18.0".sha256 = "sha256-ow3mfarZ1PvBGf5WLnI8LdF3E+8A6fN7cOcXHrZJLo0="; 19 "8.19.0".sha256 = "sha256-h5MlfRuv2hTbxGmpLUEGQO1YqQTwUNEHZzCfvdOU1TA="; 20 }; 21 22 configureScript = "./configure.sh"; 23 dontAddPrefix = true; 24 25 propagatedBuildInputs = [ bignums math-classes ]; 26 27 meta = with lib; { 28 homepage = "http://c-corn.github.io/"; 29 license = licenses.gpl2; 30 description = "Coq library for constructive analysis"; 31 maintainers = [ maintainers.vbgl ]; 32 }; 33}