Avoid top-level with ...; in pkgs/games/dwarf-fortress/game.nix

This commit is contained in:
Philip Taron
2024-03-31 00:42:56 +01:00
committed by Valentin Gagarin
parent 751f1fc693
commit bb2713d671
+13 -2
View File
@@ -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.