summaryrefslogtreecommitdiffstats
path: root/pkgs/games
diff options
context:
space:
mode:
authorPhilip Taron <philip.taron@gmail.com>2024-03-14 11:36:16 -0700
committerValentin Gagarin <valentin.gagarin@tweag.io>2024-03-31 00:42:56 +0100
commit1ed3d42bc10eceed4f9ce8443ef773b1704dc52e (patch)
treee14b55b8401d52e9fc80ab35afff492951423673 /pkgs/games
parentbb2713d671d55aaa33c96c36aaa2001694f97886 (diff)
Avoid top-level `with ...;` in pkgs/games/dwarf-fortress/lazy-pack.nix
Diffstat (limited to 'pkgs/games')
-rw-r--r--pkgs/games/dwarf-fortress/lazy-pack.nix17
1 files changed, 12 insertions, 5 deletions
diff --git a/pkgs/games/dwarf-fortress/lazy-pack.nix b/pkgs/games/dwarf-fortress/lazy-pack.nix
index 17037dbdb278..dcaa8102ae98 100644
--- a/pkgs/games/dwarf-fortress/lazy-pack.nix
+++ b/pkgs/games/dwarf-fortress/lazy-pack.nix
@@ -25,9 +25,16 @@
, enableSound ? true
}:
-with lib;
-
let
+ inherit (lib)
+ getAttr
+ hasAttr
+ licenses
+ maintainers
+ optional
+ platforms
+ ;
+
dfGame = versionToName dfVersion;
dwarf-fortress =
if hasAttr dfGame df-games
@@ -43,10 +50,10 @@ buildEnv {
enableIntro enableTruetype enableFPS enableTextMode enableSound;
})
]
- ++ lib.optional enableDwarfTherapist dwarf-therapist
- ++ lib.optional enableLegendsBrowser legends-browser;
+ ++ optional enableDwarfTherapist dwarf-therapist
+ ++ optional enableLegendsBrowser legends-browser;
- meta = with lib; {
+ meta = {
description = "An opinionated wrapper for Dwarf Fortress";
maintainers = with maintainers; [ Baughn numinit ];
license = licenses.mit;