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:
parent
bc88844e68
commit
90c265275f
|
@ -13,6 +13,8 @@ let
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
pkgs' = lib.mapAttrs (_: mod: lib.filterAttrs availableForBuild mod) pkgs;
|
||||||
|
|
||||||
availableForBuild = _: mod:
|
availableForBuild = _: mod:
|
||||||
if isNull build then
|
if isNull build then
|
||||||
true
|
true
|
||||||
|
@ -22,4 +24,4 @@ let
|
||||||
mod.forCurses;
|
mod.forCurses;
|
||||||
in
|
in
|
||||||
|
|
||||||
lib.mapAttrs (_: mod: lib.filterAttrs availableForBuild mod) pkgs
|
lib.makeExtensible (_: pkgs')
|
||||||
|
|
Loading…
Reference in a new issue