From 56ff39832db97b06ab3abc658a4569a30c6449f6 Mon Sep 17 00:00:00 2001 From: Anderson Torres Date: Fri, 23 Aug 2024 23:11:50 -0300 Subject: [PATCH] installShellFiles: set passthru directly instead of overriding it --- pkgs/by-name/in/installShellFiles/package.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) 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