diff options
author | Philip Taron <philip.taron@gmail.com> | 2024-03-14 11:36:16 -0700 |
---|---|---|
committer | Valentin Gagarin <valentin.gagarin@tweag.io> | 2024-03-31 00:42:56 +0100 |
commit | 1ed3d42bc10eceed4f9ce8443ef773b1704dc52e (patch) | |
tree | e14b55b8401d52e9fc80ab35afff492951423673 /pkgs/games | |
parent | bb2713d671d55aaa33c96c36aaa2001694f97886 (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.nix | 17 |
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; |