diff --git a/pkgs/by-name/in/installShellFiles/package.nix b/pkgs/by-name/in/installShellFiles/package.nix index 87787ad872ee..f1cf436a9b79 100644 --- a/pkgs/by-name/in/installShellFiles/package.nix +++ b/pkgs/by-name/in/installShellFiles/package.nix @@ -5,14 +5,12 @@ }: # See the header comment in ./setup-hook.sh for example usage. -let - setupHook = makeSetupHook { name = "install-shell-files"; } ./setup-hook.sh; -in -setupHook.overrideAttrs (oldAttrs: { - passthru = (oldAttrs.passthru or { }) // { +makeSetupHook { + name = "install-shell-files"; + passthru = { tests = lib.packagesFromDirectoryRecursive { inherit callPackage; directory = ./tests; }; }; -}) +} ./setup-hook.sh