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. # See the header comment in ./setup-hook.sh for example usage.
let makeSetupHook {
setupHook = makeSetupHook { name = "install-shell-files"; } ./setup-hook.sh; name = "install-shell-files";
in passthru = {
setupHook.overrideAttrs (oldAttrs: {
passthru = (oldAttrs.passthru or { }) // {
tests = lib.packagesFromDirectoryRecursive { tests = lib.packagesFromDirectoryRecursive {
inherit callPackage; inherit callPackage;
directory = ./tests; directory = ./tests;
}; };
}; };
}) } ./setup-hook.sh