about summary refs log tree commit diff
path: root/pkgs/development/coq-modules
diff options
context:
space:
mode:
authorBen Siraphob <bensiraphob@gmail.com>2021-10-30 14:01:19 -0500
committerGitHub <noreply@github.com>2021-10-30 14:01:19 -0500
commit054bac1eca0f242f226bace4568a4f98df180c7d (patch)
tree29ed4f192b52fb111167b7b1cd67c614c2cdf8d2 /pkgs/development/coq-modules
parent86661be08742ffe5270395d3938e0b3a68a68e96 (diff)
parent314e64e4676baa1aa15b2b043cea9bdf4d665d2d (diff)
Merge pull request #143793 from CohenCyril/fixHB-coq8.12
coqPackages.hierarchy-builder: etc
Diffstat (limited to 'pkgs/development/coq-modules')
-rw-r--r--pkgs/development/coq-modules/hierarchy-builder/default.nix10
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"; }
+)