2020-08-28 21:05:46 +00:00
|
|
|
{ lib, mkCoqDerivation, which, coq, coq-elpi, version ? null }:
|
2020-03-10 14:21:07 +00:00
|
|
|
|
2020-08-28 21:05:46 +00:00
|
|
|
with lib; mkCoqDerivation {
|
|
|
|
pname = "hierarchy-builder";
|
|
|
|
owner = "math-comp";
|
|
|
|
inherit version;
|
|
|
|
defaultVersion = with versions; switch coq.coq-version [
|
|
|
|
{ case = isGe "8.12"; out = "1.0.0"; }
|
|
|
|
{ case = range "8.11" "8.12"; out = "0.10.0"; }
|
|
|
|
] null;
|
|
|
|
release."1.0.0".sha256 = "0yykygs0z6fby6vkiaiv3azy1i9yx4rqg8xdlgkwnf2284hffzpp";
|
|
|
|
release."0.10.0".sha256 = "1a3vry9nzavrlrdlq3cys3f8kpq3bz447q8c4c7lh2qal61wb32h";
|
|
|
|
releaseRev = v: "v${v}";
|
2020-03-10 14:21:07 +00:00
|
|
|
|
2021-02-18 19:45:45 +00:00
|
|
|
nativeBuildInputs = [ which ];
|
|
|
|
|
2020-03-10 14:21:07 +00:00
|
|
|
propagatedBuildInputs = [ coq-elpi ];
|
|
|
|
|
2020-08-28 21:05:46 +00:00
|
|
|
extraInstallFlags = [ "VFILES=structures.v" ];
|
2020-03-10 14:21:07 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Coq plugin embedding ELPI.";
|
2020-08-28 21:05:46 +00:00
|
|
|
maintainers = [ maintainers.cohencyril ];
|
|
|
|
license = licenses.lgpl21;
|
2020-03-10 14:21:07 +00:00
|
|
|
};
|
|
|
|
}
|