mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
Avoid top-level with ...;
in pkgs/games/dwarf-fortress/lazy-pack.nix
This commit is contained in:
parent
bb2713d671
commit
1ed3d42bc1
@ -25,9 +25,16 @@
|
|||||||
, enableSound ? true
|
, enableSound ? true
|
||||||
}:
|
}:
|
||||||
|
|
||||||
with lib;
|
|
||||||
|
|
||||||
let
|
let
|
||||||
|
inherit (lib)
|
||||||
|
getAttr
|
||||||
|
hasAttr
|
||||||
|
licenses
|
||||||
|
maintainers
|
||||||
|
optional
|
||||||
|
platforms
|
||||||
|
;
|
||||||
|
|
||||||
dfGame = versionToName dfVersion;
|
dfGame = versionToName dfVersion;
|
||||||
dwarf-fortress =
|
dwarf-fortress =
|
||||||
if hasAttr dfGame df-games
|
if hasAttr dfGame df-games
|
||||||
@ -43,10 +50,10 @@ buildEnv {
|
|||||||
enableIntro enableTruetype enableFPS enableTextMode enableSound;
|
enableIntro enableTruetype enableFPS enableTextMode enableSound;
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
++ lib.optional enableDwarfTherapist dwarf-therapist
|
++ optional enableDwarfTherapist dwarf-therapist
|
||||||
++ lib.optional enableLegendsBrowser legends-browser;
|
++ optional enableLegendsBrowser legends-browser;
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "An opinionated wrapper for Dwarf Fortress";
|
description = "An opinionated wrapper for Dwarf Fortress";
|
||||||
maintainers = with maintainers; [ Baughn numinit ];
|
maintainers = with maintainers; [ Baughn numinit ];
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
|
Loading…
Reference in New Issue
Block a user