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

This commit is contained in:
Philip Taron 2024-03-14 11:35:25 -07:00 committed by Valentin Gagarin
parent 751f1fc693
commit bb2713d671

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.