cataclysmDDA: refactoring

This commit is contained in:
Mitsuhiro Nakamura 2020-11-12 10:13:19 +09:00
parent 109adedd62
commit 19deef39c7

View File

@ -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 if isNull build then
true true
else if build.isTiles then else if build.isTiles then