blob: c34fa76f6e05549c1d0acba8db30290706050b64 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
{ lib, mkCoqDerivation, coq, version ? null
, ssreflect
, deriving
}:
with lib;
(mkCoqDerivation {
pname = "extructures";
owner = "arthuraa";
inherit version;
defaultVersion = with versions; switch coq.coq-version [
{ case = range "8.11" "8.14"; out = "0.3.0"; }
{ case = range "8.10" "8.12"; out = "0.2.2"; }
] null;
releaseRev = v: "v${v}";
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;
})
|