installShellFiles: set passthru directly instead of overriding it
This commit is contained in:
parent
bb5aa086d6
commit
56ff39832d
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user