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:
|
||||
if isNull build then
|
||||
true
|
||||
@ -22,4 +24,4 @@ let
|
||||
mod.forCurses;
|
||||
in
|
||||
|
||||
lib.mapAttrs (_: mod: lib.filterAttrs availableForBuild mod) pkgs
|
||||
lib.makeExtensible (_: pkgs')
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user