diff options
author | Mitsuhiro Nakamura <m.nacamura@gmail.com> | 2020-11-12 10:13:19 +0900 |
---|---|---|
committer | Mitsuhiro Nakamura <m.nacamura@gmail.com> | 2020-11-12 10:13:19 +0900 |
commit | 19deef39c7ad25219a9a08d772fcb8713e437b08 (patch) | |
tree | 3ed847123bee135c8f331fdc677fb2b0ba10a50e /pkgs/games | |
parent | 109adedd62e705cb1187712cdba3b086bb5b17ad (diff) |
cataclysmDDA: refactoring
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/cataclysm-dda/pkgs/default.nix | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/games/cataclysm-dda/pkgs/default.nix b/pkgs/games/cataclysm-dda/pkgs/default.nix index 2c8fe3f14d0a..39abad809c5b 100644 --- a/pkgs/games/cataclysm-dda/pkgs/default.nix +++ b/pkgs/games/cataclysm-dda/pkgs/default.nix @@ -13,9 +13,9 @@ let }; }; - pkgs' = lib.mapAttrs (_: mod: lib.filterAttrs availableForBuild mod) pkgs; + pkgs' = lib.mapAttrs (_: mods: lib.filterAttrs isAvailable mods) pkgs; - availableForBuild = _: mod: + isAvailable = _: mod: if isNull build then true else if build.isTiles then |