Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ coq, mkCoqDerivation, mathcomp, lib, version ? null }: 2 3mkCoqDerivation { 4 5 namePrefix = [ "coq" "mathcomp" ]; 6 pname = "finmap"; 7 owner = "math-comp"; 8 inherit version; 9 defaultVersion = with lib.versions; lib.switch [ coq.version mathcomp.version ] [ 10 { cases = [ (range "8.13" "8.17") (isGe "1.12") ]; out = "1.5.2"; } 11 { cases = [ (isGe "8.10") (isGe "1.11") ]; out = "1.5.1"; } 12 { cases = [ (range "8.7" "8.11") "1.11.0" ]; out = "1.5.0"; } 13 { cases = [ (isEq "8.11") (range "1.8" "1.10") ]; out = "1.4.0+coq-8.11"; } 14 { cases = [ (range "8.7" "8.11.0") (range "1.8" "1.10") ]; out = "1.4.0"; } 15 { cases = [ (range "8.7" "8.11.0") (range "1.8" "1.10") ]; out = "1.3.4"; } 16 { cases = [ (range "8.7" "8.9") "1.7.0" ]; out = "1.1.0"; } 17 { cases = [ (range "8.6" "8.7") (range "1.6.1" "1.7") ]; out = "1.0.0"; } 18 ] null; 19 release = { 20 "1.5.2".sha256 = "sha256-0KmmSjc2AlUo6BKr9RZ4FjL9wlGISlTGU0X1Eu7l4sw="; 21 "1.5.1".sha256 = "0ryfml4pf1dfya16d8ma80favasmrygvspvb923n06kfw9v986j7"; 22 "1.5.0".sha256 = "0vx9n1fi23592b3hv5p5ycy7mxc8qh1y5q05aksfwbzkk5zjkwnq"; 23 "1.4.1".sha256 = "0kx4nx24dml1igk0w0qijmw221r5bgxhwhl5qicnxp7ab3c35s8p"; 24 "1.4.0+coq-8.11".sha256 = "1fd00ihyx0kzq5fblh9vr8s5mr1kg7p6pk11c4gr8svl1n69ppmb"; 25 "1.4.0".sha256 = "0mp82mcmrs424ff1vj3cvd8353r9vcap027h3p0iprr1vkkwjbzd"; 26 "1.3.4".sha256 = "0f5a62ljhixy5d7gsnwd66gf054l26k3m79fb8nz40i2mgp6l9ii"; 27 "1.2.1".sha256 = "0jryb5dq8js3imbmwrxignlk5zh8gwfb1wr4b1s7jbwz410vp7zf"; 28 "1.1.0".sha256 = "05df59v3na8jhpsfp7hq3niam6asgcaipg2wngnzxzqnl86srp2a"; 29 "1.0.0".sha256 = "0sah7k9qm8sw17cgd02f0x84hki8vj8kdz7h15i7rmz08rj0whpa"; 30 }; 31 32 propagatedBuildInputs = [ mathcomp.ssreflect ]; 33 34 meta = { 35 description = "A finset and finmap library"; 36 license = lib.licenses.cecill-b; 37 }; 38}