about summary refs log tree commit diff
path: root/pkgs/games
diff options
context:
space:
mode:
authorPhilip Taron <philip.taron@gmail.com>2024-03-14 11:35:25 -0700
committerValentin Gagarin <valentin.gagarin@tweag.io>2024-03-31 00:42:56 +0100
commitbb2713d671d55aaa33c96c36aaa2001694f97886 (patch)
treecec2995b417d431be836698bb29a121c035a0de3 /pkgs/games
parent751f1fc693e6a9684cd604f24cccc5f81ca96f66 (diff)
Avoid top-level `with ...;` in pkgs/games/dwarf-fortress/game.nix
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/dwarf-fortress/game.nix15
1 files changed, 13 insertions, 2 deletions
diff --git a/pkgs/games/dwarf-fortress/game.nix b/pkgs/games/dwarf-fortress/game.nix
index 7ce837b7b0b55..8d351cdbbd0d1 100644
--- a/pkgs/games/dwarf-fortress/game.nix
+++ b/pkgs/games/dwarf-fortress/game.nix
@@ -13,9 +13,20 @@
 , df-hashes
 }:
 
-with lib;
-
 let
+  inherit (lib)
+    attrNames
+    elemAt
+    getAttr
+    getLib
+    hasAttr
+    licenses
+    maintainers
+    makeLibraryPath
+    optionalString
+    splitVersion
+    ;
+
   libpath = makeLibraryPath [ stdenv.cc.cc stdenv.cc.libc dwarf-fortress-unfuck SDL ];
 
   # Map Dwarf Fortress platform names to Nixpkgs platform names.