mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-16 17:14:00 +00:00
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…
Reference in New Issue
Block a user