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.
|
# 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
|
||||||
|
Loading…
Reference in New Issue
Block a user