installShellFiles: set passthru directly instead of overriding it

This commit is contained in:
Anderson Torres 2024-08-23 23:11:50 -03:00
parent bb5aa086d6
commit 56ff39832d

View File

@ -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