cataclysmDDA: make pkgs extensible

Example:

let
  customMods = self: super: lib.recursiveUpdate super {
    soundpack.AwesomeSounds = cataclysmDDA.buildSoundPack { ... };
  };
in
cataclysm-dda.withMods (mods: with mods.extend customMods; [
  tileset.UndeadPeople
  soundpack.AwesomeSounds
])
This commit is contained in:
Mitsuhiro Nakamura 2020-04-08 14:10:35 +09:00
parent bc88844e68
commit 90c265275f

View file

@ -13,6 +13,8 @@ let
};
};
pkgs' = lib.mapAttrs (_: mod: lib.filterAttrs availableForBuild mod) pkgs;
availableForBuild = _: mod:
if isNull build then
true
@ -22,4 +24,4 @@ let
mod.forCurses;
in
lib.mapAttrs (_: mod: lib.filterAttrs availableForBuild mod) pkgs
lib.makeExtensible (_: pkgs')