summaryrefslogtreecommitdiffstats
path: root/pkgs/development/coq-modules/hierarchy-builder
diff options
context:
space:
mode:
authorShawn8901 <shawn8901@googlemail.com>2023-01-21 23:19:48 +0100
committerShawn8901 <shawn8901@googlemail.com>2023-01-21 23:19:48 +0100
commit4dcb03a5c32a90dbef83094183ef52e0580dfd22 (patch)
tree8fccecb83f2638fef7a880d75a21b714a3742b8c /pkgs/development/coq-modules/hierarchy-builder
parent11da253ac9d248a2daa5a4a9b5c630bb0603cab3 (diff)
treewide: remove global with lib; statements in pkgs/coq-modules
Diffstat (limited to 'pkgs/development/coq-modules/hierarchy-builder')
-rw-r--r--pkgs/development/coq-modules/hierarchy-builder/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/development/coq-modules/hierarchy-builder/default.nix b/pkgs/development/coq-modules/hierarchy-builder/default.nix
index 4f319587de93..9bcc07387b1e 100644
--- a/pkgs/development/coq-modules/hierarchy-builder/default.nix
+++ b/pkgs/development/coq-modules/hierarchy-builder/default.nix
@@ -1,10 +1,10 @@
{ lib, mkCoqDerivation, coq, coq-elpi, version ? null }:
-with lib; let hb = mkCoqDerivation {
+let hb = mkCoqDerivation {
pname = "hierarchy-builder";
owner = "math-comp";
inherit version;
- defaultVersion = with versions; switch coq.coq-version [
+ defaultVersion = with lib.versions; lib.switch coq.coq-version [
{ case = range "8.15" "8.16"; out = "1.4.0"; }
{ case = range "8.13" "8.14"; out = "1.2.0"; }
{ case = range "8.12" "8.13"; out = "1.1.0"; }
@@ -25,16 +25,16 @@ with lib; let hb = mkCoqDerivation {
extraInstallFlags = [ "VFILES=structures.v" ];
- meta = {
+ meta = with lib; {
description = "High level commands to declare a hierarchy based on packed classes";
maintainers = with maintainers; [ cohencyril siraben ];
license = licenses.mit;
};
}; in
hb.overrideAttrs (o:
- optionalAttrs (versions.isGe "1.2.0" o.version || o.version == "dev")
+ lib.optionalAttrs (lib.versions.isGe "1.2.0" o.version || o.version == "dev")
{ buildPhase = "make build"; }
//
- optionalAttrs (versions.isGe "1.1.0" o.version || o.version == "dev")
+ lib.optionalAttrs (lib.versions.isGe "1.1.0" o.version || o.version == "dev")
{ installFlags = [ "DESTDIR=$(out)" ] ++ o.installFlags; }
)