3a4df29a92
GitOrigin-RevId: 3d7435c638baffaa826b85459df0fff47f12317d
35 lines
1.1 KiB
Nix
35 lines
1.1 KiB
Nix
{ lib, mkCoqDerivation, coq, version ? null
|
|
, ssreflect
|
|
, deriving
|
|
}:
|
|
with lib;
|
|
|
|
(mkCoqDerivation {
|
|
pname = "extructures";
|
|
owner = "arthuraa";
|
|
|
|
inherit version;
|
|
defaultVersion = with versions; switch [coq.coq-version ssreflect.version] [
|
|
{ cases = [(range "8.11" "8.15") (isGe "1.12.0") ]; out = "0.3.1"; }
|
|
{ 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"; }
|
|
] null;
|
|
|
|
releaseRev = v: "v${v}";
|
|
|
|
release."0.3.1".sha256 = "sha256-KcuG/11Yq5ACem4FyVnQqHKvy3tNK7hd0ir2SJzzMN0=";
|
|
release."0.3.0".sha256 = "sha256:14rm0726f1732ldds495qavg26gsn30w6dfdn36xb12g5kzavp38";
|
|
release."0.2.2".sha256 = "sha256:1clzza73gccy6p6l95n6gs0adkqd3h4wgl4qg5l0qm4q140grvm7";
|
|
|
|
propagatedBuildInputs = [ ssreflect ];
|
|
|
|
meta = {
|
|
description = "Finite data structures with extensional reasoning";
|
|
license = licenses.mit;
|
|
maintainers = [ maintainers.vbgl ];
|
|
};
|
|
|
|
}).overrideAttrs (o: {
|
|
propagatedBuildInputs = o.propagatedBuildInputs
|
|
++ optional (versionAtLeast o.version "0.3.0") deriving;
|
|
})
|