coqPackages.hierarchy-builder: do not pass VFILES if version >= 1.1.0 (#341171)

Co-authored-by: Pierre Roux <pierre.roux@onera.fr>
This commit is contained in:
Enrico Tassi 2024-09-12 21:09:04 +02:00 committed by GitHub
parent e7bcab801c
commit bbf4cf5e77
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -29,8 +29,6 @@ let hb = mkCoqDerivation {
mlPlugin = true;
extraInstallFlags = [ "VFILES=structures.v" ];
meta = with lib; {
description = "High level commands to declare a hierarchy based on packed classes";
maintainers = with maintainers; [ cohencyril siraben ];
@ -41,6 +39,8 @@ hb.overrideAttrs (o:
lib.optionalAttrs (lib.versions.isGe "1.2.0" o.version || o.version == "dev")
{ buildPhase = "make build"; }
//
lib.optionalAttrs (lib.versions.isGe "1.1.0" o.version || o.version == "dev")
{ installFlags = [ "DESTDIR=$(out)" ] ++ o.installFlags; }
(if lib.versions.isGe "1.1.0" o.version || o.version == "dev" then
{ installFlags = [ "DESTDIR=$(out)" ] ++ o.installFlags; }
else
{ installFlags = [ "VFILES=structures.v" ] ++ o.installFlags; })
)