Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 21 lines 568 B view raw
1{ callPackage, ... }@args: 2let 3 unwrapped = callPackage ./unwrapped.nix (removeAttrs args [ "callPackage" ]); 4in 5unwrapped.overrideAttrs (oldAttrs: { 6 passthru = 7 let 8 finalKodi = oldAttrs.passthru.kodi; 9 kodiPackages = callPackage ../../../top-level/kodi-packages.nix { kodi = finalKodi; }; 10 in 11 oldAttrs.passthru 12 // { 13 packages = kodiPackages; 14 withPackages = 15 func: 16 callPackage ./wrapper.nix { 17 kodi = finalKodi; 18 addons = kodiPackages.requiredKodiAddons (func kodiPackages); 19 }; 20 }; 21})