2021-01-09 10:05:03 +00:00
|
|
|
{ coq, mkCoqDerivation, mathcomp, mathcomp-finmap, mathcomp-bigenough, mathcomp-real-closed,
|
2021-03-15 08:37:03 +00:00
|
|
|
hierarchy-builder, lib, version ? null }:
|
2021-01-09 10:05:03 +00:00
|
|
|
|
2021-03-15 08:37:03 +00:00
|
|
|
with lib;
|
|
|
|
let mca = mkCoqDerivation {
|
2021-01-09 10:05:03 +00:00
|
|
|
|
|
|
|
namePrefix = [ "coq" "mathcomp" ];
|
|
|
|
pname = "analysis";
|
|
|
|
owner = "math-comp";
|
|
|
|
|
2021-09-18 10:52:07 +00:00
|
|
|
release."0.3.10".sha256 = "sha256-FBH2c8QRibq5Ycw/ieB8mZl0fDiPrYdIzZ6W/A3pIhI=";
|
2021-07-17 21:14:59 +00:00
|
|
|
release."0.3.9".sha256 = "sha256-uUU9diBwUqBrNRLiDc0kz0CGkwTZCUmigPwLbpDOeg4=";
|
2021-03-15 08:37:03 +00:00
|
|
|
release."0.3.6".sha256 = "0g2j7b2hca4byz62ssgg90bkbc8wwp7xkb2d3225bbvihi92b4c5";
|
|
|
|
release."0.3.4".sha256 = "18mgycjgg829dbr7ps77z6lcj03h3dchjbj5iir0pybxby7gd45c";
|
|
|
|
release."0.3.3".sha256 = "1m2mxcngj368vbdb8mlr91hsygl430spl7lgyn9qmn3jykack867";
|
2021-01-09 10:05:03 +00:00
|
|
|
release."0.3.1".sha256 = "1iad288yvrjv8ahl9v18vfblgqb1l5z6ax644w49w9hwxs93f2k8";
|
|
|
|
release."0.2.3".sha256 = "0p9mr8g1qma6h10qf7014dv98ln90dfkwn76ynagpww7qap8s966";
|
|
|
|
|
|
|
|
inherit version;
|
|
|
|
defaultVersion = with versions; switch [ coq.version mathcomp.version ] [
|
2021-09-18 10:52:07 +00:00
|
|
|
{ cases = [ (range "8.11" "8.13") "1.12.0" ]; out = "0.3.10"; }
|
2021-03-15 08:37:03 +00:00
|
|
|
{ cases = [ (range "8.11" "8.13") "1.11.0" ]; out = "0.3.4"; }
|
|
|
|
{ cases = [ (range "8.10" "8.12") "1.11.0" ]; out = "0.3.3"; }
|
2021-01-09 10:05:03 +00:00
|
|
|
{ cases = [ (range "8.10" "8.11") "1.11.0" ]; out = "0.3.1"; }
|
|
|
|
{ cases = [ (range "8.8" "8.11") (range "1.8" "1.10") ]; out = "0.2.3"; }
|
|
|
|
] null;
|
|
|
|
|
|
|
|
propagatedBuildInputs =
|
|
|
|
[ mathcomp.ssreflect mathcomp.field
|
|
|
|
mathcomp-finmap mathcomp-bigenough mathcomp-real-closed ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Analysis library compatible with Mathematical Components";
|
2021-01-15 22:18:51 +00:00
|
|
|
maintainers = [ maintainers.cohencyril ];
|
2021-01-09 10:05:03 +00:00
|
|
|
license = licenses.cecill-c;
|
|
|
|
};
|
2021-03-15 08:37:03 +00:00
|
|
|
}; in
|
|
|
|
mca.overrideAttrs (o:
|
|
|
|
let ext = { propagatedBuildInputs = o.propagatedBuildInputs
|
|
|
|
++ [ hierarchy-builder ]; };
|
|
|
|
in with versions; switch o.version [
|
|
|
|
{case = "dev"; out = ext;}
|
|
|
|
{case = isGe "0.3.4"; out = ext;}
|
|
|
|
] {}
|
|
|
|
)
|