Files
nixpkgs/pkgs/applications/video/kodi/default.nix
Philippe Hürlimann 7d0201dfa6 kodi: use passthru packages in withPackages
Previously kodi.withPackages constructed its own kodiPackages set
instead of using the one exposed through kodi.passthru.packages,
preventing the use of overridden kodi packages in kodi.withPackages.

This change package overrides such that they are observed by both addon
selection and wrapper path construction.
2026-04-30 12:02:11 +02:00

21 lines
545 B
Nix

{ callPackage, ... }@args:
let
unwrapped = callPackage ./unwrapped.nix (removeAttrs args [ "callPackage" ]);
in
unwrapped.overrideAttrs (oldAttrs: {
passthru =
let
finalKodi = oldAttrs.passthru.kodi;
in
oldAttrs.passthru
// {
packages = callPackage ../../../top-level/kodi-packages.nix { kodi = finalKodi; };
withPackages =
func:
callPackage ./wrapper.nix {
kodi = finalKodi;
addons = finalKodi.packages.requiredKodiAddons (func finalKodi.packages);
};
};
})