installShellFiles: set passthru directly instead of overriding it

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