diff options
author | Cyril Cohen <cohen@crans.org> | 2021-10-30 05:30:44 +0200 |
---|---|---|
committer | Cyril Cohen <cohen@crans.org> | 2021-10-30 05:30:44 +0200 |
commit | 314e64e4676baa1aa15b2b043cea9bdf4d665d2d (patch) | |
tree | b73b2f6a80cd344478251df4e3761e842bdd4a54 /pkgs/development/coq-modules/hierarchy-builder | |
parent | 461db988aff6441a71d47e9be0e5be2865bd2cc7 (diff) |
coqPackages.hierarchy-builder: etc
Diffstat (limited to 'pkgs/development/coq-modules/hierarchy-builder')
-rw-r--r-- | pkgs/development/coq-modules/hierarchy-builder/default.nix | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkgs/development/coq-modules/hierarchy-builder/default.nix b/pkgs/development/coq-modules/hierarchy-builder/default.nix index 1feb873908a7c..e950741d81ca8 100644 --- a/pkgs/development/coq-modules/hierarchy-builder/default.nix +++ b/pkgs/development/coq-modules/hierarchy-builder/default.nix @@ -1,6 +1,6 @@ { lib, mkCoqDerivation, which, coq, coq-elpi, version ? null }: -with lib; mkCoqDerivation { +with lib; let hb = mkCoqDerivation { pname = "hierarchy-builder"; owner = "math-comp"; inherit version; @@ -21,8 +21,6 @@ with lib; mkCoqDerivation { mlPlugin = true; - buildPhase = "make build"; - installFlags = [ "DESTDIR=$(out)" "COQMF_COQLIB=lib/coq/${coq.coq-version}" ]; extraInstallFlags = [ "VFILES=structures.v" ]; @@ -31,4 +29,8 @@ with lib; mkCoqDerivation { maintainers = with maintainers; [ cohencyril siraben ]; license = licenses.mit; }; -} +}; in +hb.overrideAttrs (o: + optionalAttrs (versions.isGe "1.2.0" o.version || o.version == "dev") + { buildPhase = "make build"; } +) |