Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ coq, mkCoqDerivation, mathcomp, mathcomp-bigenough, 2 lib, version ? null }: 3 4mkCoqDerivation { 5 6 namePrefix = [ "coq" "mathcomp" ]; 7 pname = "real-closed"; 8 owner = "math-comp"; 9 inherit version; 10 release = { 11 "1.1.4".sha256 = "sha256-8Hs6XfowbpeRD8RhMRf4ZJe2xf8kE0e8m7bPUzR/IM4="; 12 "1.1.3".sha256 = "1vwmmnzy8i4f203i2s60dn9i0kr27lsmwlqlyyzdpsghvbr8h5b7"; 13 "1.1.2".sha256 = "0907x4nf7nnvn764q3x9lx41g74rilvq5cki5ziwgpsdgb98pppn"; 14 "1.1.1".sha256 = "0ksjscrgq1i79vys4zrmgvzy2y4ylxa8wdsf4kih63apw6v5ws6b"; 15 "1.0.5".sha256 = "0q8nkxr9fba4naylr5xk7hfxsqzq2pvwlg1j0xxlhlgr3fmlavg2"; 16 "1.0.4".sha256 = "058v9dj973h9kfhqmvcy9a6xhhxzljr90cf99hdfcdx68fi2ha1b"; 17 "1.0.3".sha256 = "1xbzkzqgw5p42dx1liy6wy8lzdk39zwd6j14fwvv5735k660z7yb"; 18 "1.0.1".sha256 = "0j81gkjbza5vg89v4n9z598mfdbql416963rj4b8fzm7dp2r4rxg"; 19 }; 20 21 defaultVersion = with lib.versions; lib.switch [ coq.version mathcomp.version ] [ 22 { cases = [ (isGe "8.13") (isGe "1.13.0") ]; out = "1.1.4"; } 23 { cases = [ (isGe "8.13") (isGe "1.12.0") ]; out = "1.1.3"; } 24 { cases = [ (isGe "8.10") (isGe "1.12.0") ]; out = "1.1.2"; } 25 { cases = [ (isGe "8.7") "1.11.0" ]; out = "1.1.1"; } 26 { cases = [ (isGe "8.7") (range "1.9.0" "1.10.0") ]; out = "1.0.4"; } 27 { cases = [ (isGe "8.7") "1.8.0" ]; out = "1.0.3"; } 28 { cases = [ (isGe "8.7") "1.7.0" ]; out = "1.0.1"; } 29 ] null; 30 31 propagatedBuildInputs = [ 32 mathcomp.ssreflect 33 mathcomp.algebra 34 mathcomp.field 35 mathcomp.fingroup 36 mathcomp.solvable 37 mathcomp-bigenough 38 ]; 39 40 meta = { 41 description = "Mathematical Components Library on real closed fields"; 42 license = lib.licenses.cecill-c; 43 }; 44}