2022-06-16 17:23:12 +00:00
|
|
|
{ lib, mkCoqDerivation, coq, coq-elpi, version ? null }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
let hb = mkCoqDerivation {
|
2021-01-09 10:05:03 +00:00
|
|
|
pname = "hierarchy-builder";
|
|
|
|
owner = "math-comp";
|
|
|
|
inherit version;
|
2023-02-02 18:25:31 +00:00
|
|
|
defaultVersion = with lib.versions; lib.switch coq.coq-version [
|
2023-03-15 16:39:30 +00:00
|
|
|
{ case = range "8.15" "8.17"; out = "1.4.0"; }
|
2021-10-28 06:52:43 +00:00
|
|
|
{ case = range "8.13" "8.14"; out = "1.2.0"; }
|
2021-10-14 00:43:12 +00:00
|
|
|
{ case = range "8.12" "8.13"; out = "1.1.0"; }
|
|
|
|
{ case = isEq "8.11"; out = "0.10.0"; }
|
2021-01-09 10:05:03 +00:00
|
|
|
] null;
|
2022-09-30 11:47:45 +00:00
|
|
|
release."1.4.0".sha256 = "sha256-tOed9UU3kMw6KWHJ5LVLUFEmzHx1ImutXQvZ0ldW9rw=";
|
2022-09-09 14:08:57 +00:00
|
|
|
release."1.3.0".sha256 = "17k7rlxdx43qda6i1yafpgc64na8br285cb0mbxy5wryafcdrkrc";
|
2022-02-10 20:34:41 +00:00
|
|
|
release."1.2.1".sha256 = "sha256-pQYZJ34YzvdlRSGLwsrYgPdz3p/l5f+KhJjkYT08Mj0=";
|
2021-10-28 06:52:43 +00:00
|
|
|
release."1.2.0".sha256 = "0sk01rvvk652d86aibc8rik2m8iz7jn6mw9hh6xkbxlsvh50719d";
|
2021-07-17 21:14:59 +00:00
|
|
|
release."1.1.0".sha256 = "sha256-spno5ty4kU4WWiOfzoqbXF8lWlNSlySWcRReR3zE/4Q=";
|
2021-01-09 10:05:03 +00:00
|
|
|
release."1.0.0".sha256 = "0yykygs0z6fby6vkiaiv3azy1i9yx4rqg8xdlgkwnf2284hffzpp";
|
|
|
|
release."0.10.0".sha256 = "1a3vry9nzavrlrdlq3cys3f8kpq3bz447q8c4c7lh2qal61wb32h";
|
|
|
|
releaseRev = v: "v${v}";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ coq-elpi ];
|
|
|
|
|
2021-07-17 21:14:59 +00:00
|
|
|
mlPlugin = true;
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
extraInstallFlags = [ "VFILES=structures.v" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2021-07-17 21:14:59 +00:00
|
|
|
description = "High level commands to declare a hierarchy based on packed classes";
|
|
|
|
maintainers = with maintainers; [ cohencyril siraben ];
|
|
|
|
license = licenses.mit;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-12-06 16:07:01 +00:00
|
|
|
}; in
|
|
|
|
hb.overrideAttrs (o:
|
2023-02-02 18:25:31 +00:00
|
|
|
lib.optionalAttrs (lib.versions.isGe "1.2.0" o.version || o.version == "dev")
|
2021-12-06 16:07:01 +00:00
|
|
|
{ buildPhase = "make build"; }
|
2022-06-26 10:26:21 +00:00
|
|
|
//
|
2023-02-02 18:25:31 +00:00
|
|
|
lib.optionalAttrs (lib.versions.isGe "1.1.0" o.version || o.version == "dev")
|
2022-06-26 10:26:21 +00:00
|
|
|
{ installFlags = [ "DESTDIR=$(out)" ] ++ o.installFlags; }
|
2021-12-06 16:07:01 +00:00
|
|
|
)
|