about summary refs log tree commit diff
path: root/pkgs/development/coq-modules/hydra-battles
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/hydra-battles
parent11da253ac9d248a2daa5a4a9b5c630bb0603cab3 (diff)
treewide: remove global with lib; statements in pkgs/coq-modules
Diffstat (limited to 'pkgs/development/coq-modules/hydra-battles')
-rw-r--r--pkgs/development/coq-modules/hydra-battles/default.nix7
1 files changed, 3 insertions, 4 deletions
diff --git a/pkgs/development/coq-modules/hydra-battles/default.nix b/pkgs/development/coq-modules/hydra-battles/default.nix
index 2729f7c213918..06798c5fcc291 100644
--- a/pkgs/development/coq-modules/hydra-battles/default.nix
+++ b/pkgs/development/coq-modules/hydra-battles/default.nix
@@ -1,5 +1,4 @@
 { lib, mkCoqDerivation, coq, equations, LibHyps, version ? null }:
-with lib;
 
 (mkCoqDerivation {
   pname = "hydra-battles";
@@ -11,14 +10,14 @@ with lib;
   releaseRev = (v: "v${v}");
 
   inherit version;
-  defaultVersion = with versions; switch coq.coq-version [
+  defaultVersion = with lib.versions; lib.switch coq.coq-version [
     { case = range "8.13" "8.16"; out = "0.6"; }
     { case = range "8.11" "8.12"; out = "0.4"; }
   ] null;
 
   useDune = true;
 
-  meta = {
+  meta = with lib; {
     description = "Exploration of some properties of Kirby and Paris' hydra battles, with the help of Coq";
     longDescription = ''
       An exploration of some properties of Kirby and Paris' hydra
@@ -33,5 +32,5 @@ with lib;
   };
 }).overrideAttrs(o:
   let inherit (o) version; in {
-    propagatedBuildInputs = [ equations ] ++ optional (versions.isGe "0.6" version || version == "dev") LibHyps;
+    propagatedBuildInputs = [ equations ] ++ lib.optional (lib.versions.isGe "0.6" version || version == "dev") LibHyps;
   })