From 19deef39c7ad25219a9a08d772fcb8713e437b08 Mon Sep 17 00:00:00 2001 From: Mitsuhiro Nakamura Date: Thu, 12 Nov 2020 10:13:19 +0900 Subject: [PATCH] cataclysmDDA: refactoring --- pkgs/games/cataclysm-dda/pkgs/default.nix | 4 ++-- 1 file 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