2021-01-09 10:05:03 +00:00
|
|
|
{ coq, mkCoqDerivation, mathcomp, mathcomp-finmap, mathcomp-bigenough,
|
2022-10-06 18:32:54 +00:00
|
|
|
lib, version ? null, useDune ? false }@args:
|
2023-02-02 18:25:31 +00:00
|
|
|
mkCoqDerivation {
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
namePrefix = [ "coq" "mathcomp" ];
|
|
|
|
pname = "multinomials";
|
2021-08-18 13:19:15 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
owner = "math-comp";
|
2021-08-18 13:19:15 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
inherit version;
|
2023-02-02 18:25:31 +00:00
|
|
|
defaultVersion = with lib.versions; lib.switch [ coq.version mathcomp.version ] [
|
2023-03-15 16:39:30 +00:00
|
|
|
{ cases = [ (isGe "8.10") (isGe "1.13.0") ]; out = "1.5.6"; }
|
|
|
|
{ cases = [ (range "8.10" "8.16") (range "1.12.0" "1.15.0") ]; out = "1.5.5"; }
|
2021-03-12 07:09:13 +00:00
|
|
|
{ cases = [ (range "8.10" "8.12") "1.12.0" ]; out = "1.5.3"; }
|
2021-01-09 10:05:03 +00:00
|
|
|
{ cases = [ (range "8.7" "8.12") "1.11.0" ]; out = "1.5.2"; }
|
|
|
|
{ cases = [ (range "8.7" "8.11") (range "1.8" "1.10") ]; out = "1.5.0"; }
|
|
|
|
{ cases = [ (range "8.7" "8.10") (range "1.8" "1.10") ]; out = "1.4"; }
|
|
|
|
{ cases = [ "8.6" (range "1.6" "1.7") ]; out = "1.1"; }
|
|
|
|
] null;
|
|
|
|
release = {
|
2023-03-15 16:39:30 +00:00
|
|
|
"1.5.6".sha256 = "sha256-cMixgc34T9Ic6v+tYmL49QUNpZpPV5ofaNuHqblX6oY=";
|
2022-02-10 20:34:41 +00:00
|
|
|
"1.5.5".sha256 = "sha256-VdXA51vr7DZl/wT/15YYMywdD7Gh91dMP9t7ij47qNQ=";
|
2021-03-12 07:09:13 +00:00
|
|
|
"1.5.4".sha256 = "0s4sbh4y88l125hdxahr56325hdhxxdmqmrz7vv8524llyv3fciq";
|
|
|
|
"1.5.3".sha256 = "1462x40y2qydjd2wcg8r6qr8cx3xv4ixzh2h8vp9h7arylkja1qd";
|
2021-01-09 10:05:03 +00:00
|
|
|
"1.5.2".sha256 = "15aspf3jfykp1xgsxf8knqkxv8aav2p39c2fyirw7pwsfbsv2c4s";
|
|
|
|
"1.5.1".sha256 = "13nlfm2wqripaq671gakz5mn4r0xwm0646araxv0nh455p9ndjs3";
|
|
|
|
"1.5.0".sha256 = "064rvc0x5g7y1a0nip6ic91vzmq52alf6in2bc2dmss6dmzv90hw";
|
|
|
|
"1.5.0".rev = "1.5";
|
|
|
|
"1.4".sha256 = "0vnkirs8iqsv8s59yx1fvg1nkwnzydl42z3scya1xp1b48qkgn0p";
|
|
|
|
"1.3".sha256 = "0l3vi5n094nx3qmy66hsv867fnqm196r8v605kpk24gl0aa57wh4";
|
|
|
|
"1.2".sha256 = "1mh1w339dslgv4f810xr1b8v2w7rpx6fgk9pz96q0fyq49fw2xcq";
|
|
|
|
"1.1".sha256 = "1q8alsm89wkc0lhcvxlyn0pd8rbl2nnxg81zyrabpz610qqjqc3s";
|
|
|
|
"1.0".sha256 = "1qmbxp1h81cy3imh627pznmng0kvv37k4hrwi2faa101s6bcx55m";
|
|
|
|
};
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
useDuneifVersion = v: lib.versions.isGe "1.5.3" v || v == "dev";
|
2021-10-04 12:37:57 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
patchShebangs configure || true
|
|
|
|
'';
|
2021-03-12 07:09:13 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
propagatedBuildInputs =
|
2022-03-05 16:20:37 +00:00
|
|
|
[ mathcomp.ssreflect mathcomp.algebra mathcomp-finmap mathcomp.fingroup mathcomp-bigenough ];
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "A Coq/SSReflect Library for Monoidal Rings and Multinomials";
|
2023-02-02 18:25:31 +00:00
|
|
|
license = lib.licenses.cecill-c;
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
|
|
|
}
|
2023-02-02 18:25:31 +00:00
|
|
|
// lib.optionalAttrs (args?useDune) { inherit useDune; }
|