2021-10-28 06:52:43 +00:00
|
|
|
{ lib, mkCoqDerivation, coq, version ? null
|
|
|
|
, ssreflect
|
|
|
|
, deriving
|
|
|
|
}:
|
|
|
|
|
|
|
|
(mkCoqDerivation {
|
|
|
|
pname = "extructures";
|
|
|
|
owner = "arthuraa";
|
|
|
|
|
|
|
|
inherit version;
|
2023-02-02 18:25:31 +00:00
|
|
|
defaultVersion = with lib.versions; lib.switch [coq.coq-version ssreflect.version] [
|
2023-07-15 17:15:38 +00:00
|
|
|
{ cases = [(range "8.11" "8.17") (isGe "1.12.0") ]; out = "0.3.1"; }
|
2021-12-06 16:07:01 +00:00
|
|
|
{ cases = [(range "8.11" "8.14") (isLe "1.12.0") ]; out = "0.3.0"; }
|
|
|
|
{ cases = [(range "8.10" "8.12") (isLe "1.12.0") ]; out = "0.2.2"; }
|
2021-10-28 06:52:43 +00:00
|
|
|
] null;
|
|
|
|
|
|
|
|
releaseRev = v: "v${v}";
|
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
release."0.3.1".sha256 = "sha256-KcuG/11Yq5ACem4FyVnQqHKvy3tNK7hd0ir2SJzzMN0=";
|
2021-10-28 06:52:43 +00:00
|
|
|
release."0.3.0".sha256 = "sha256:14rm0726f1732ldds495qavg26gsn30w6dfdn36xb12g5kzavp38";
|
|
|
|
release."0.2.2".sha256 = "sha256:1clzza73gccy6p6l95n6gs0adkqd3h4wgl4qg5l0qm4q140grvm7";
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ ssreflect ];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2021-10-28 06:52:43 +00:00
|
|
|
description = "Finite data structures with extensional reasoning";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.vbgl ];
|
|
|
|
};
|
|
|
|
|
|
|
|
}).overrideAttrs (o: {
|
|
|
|
propagatedBuildInputs = o.propagatedBuildInputs
|
2023-02-02 18:25:31 +00:00
|
|
|
++ lib.optional (lib.versionAtLeast o.version "0.3.0") deriving;
|
2021-10-28 06:52:43 +00:00
|
|
|
})
|