installShellFiles: set passthru directly instead of overriding it

+4 -6
+4 -6
pkgs/by-name/in/installShellFiles/package.nix
··· 5 5 }: 6 6 7 7 # See the header comment in ./setup-hook.sh for example usage. 8 - let 9 - setupHook = makeSetupHook { name = "install-shell-files"; } ./setup-hook.sh; 10 - in 11 - setupHook.overrideAttrs (oldAttrs: { 12 - passthru = (oldAttrs.passthru or { }) // { 8 + makeSetupHook { 9 + name = "install-shell-files"; 10 + passthru = { 13 11 tests = lib.packagesFromDirectoryRecursive { 14 12 inherit callPackage; 15 13 directory = ./tests; 16 14 }; 17 15 }; 18 - }) 16 + } ./setup-hook.sh