mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 04:19:00 +02:00
patchRcPath hooks: use the passthru argument
This commit is contained in:
parent
a664ec27f4
commit
6386d79326
|
@ -7,19 +7,18 @@ let
|
||||||
tests = import ./test { inherit callPackage; };
|
tests = import ./test { inherit callPackage; };
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
patchRcPathBash = (makeSetupHook
|
patchRcPathBash = makeSetupHook
|
||||||
{
|
{
|
||||||
name = "patch-rc-path-bash";
|
name = "patch-rc-path-bash";
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Setup-hook to inject source-time PATH prefix to a Bash/Ksh/Zsh script";
|
description = "Setup-hook to inject source-time PATH prefix to a Bash/Ksh/Zsh script";
|
||||||
maintainers = with maintainers; [ ShamrockLee ];
|
maintainers = with maintainers; [ ShamrockLee ];
|
||||||
};
|
};
|
||||||
} ./patch-rc-path-bash.sh).overrideAttrs (oldAttrs: {
|
passthru.tests = {
|
||||||
passthru.tests = {
|
inherit (tests) test-bash;
|
||||||
inherit (tests) test-bash;
|
};
|
||||||
};
|
} ./patch-rc-path-bash.sh;
|
||||||
});
|
patchRcPathCsh = makeSetupHook
|
||||||
patchRcPathCsh = (makeSetupHook
|
|
||||||
{
|
{
|
||||||
name = "patch-rc-path-csh";
|
name = "patch-rc-path-csh";
|
||||||
substitutions = {
|
substitutions = {
|
||||||
|
@ -29,24 +28,22 @@ in
|
||||||
description = "Setup-hook to inject source-time PATH prefix to a Csh script";
|
description = "Setup-hook to inject source-time PATH prefix to a Csh script";
|
||||||
maintainers = with maintainers; [ ShamrockLee ];
|
maintainers = with maintainers; [ ShamrockLee ];
|
||||||
};
|
};
|
||||||
} ./patch-rc-path-csh.sh).overrideAttrs (oldAttrs: {
|
passthru.tests = {
|
||||||
passthru.tests = {
|
inherit (tests) test-csh;
|
||||||
inherit (tests) test-csh;
|
};
|
||||||
};
|
} ./patch-rc-path-csh.sh;
|
||||||
});
|
patchRcPathFish = makeSetupHook
|
||||||
patchRcPathFish = (makeSetupHook
|
|
||||||
{
|
{
|
||||||
name = "patch-rc-path-fish";
|
name = "patch-rc-path-fish";
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Setup-hook to inject source-time PATH prefix to a Fish script";
|
description = "Setup-hook to inject source-time PATH prefix to a Fish script";
|
||||||
maintainers = with maintainers; [ ShamrockLee ];
|
maintainers = with maintainers; [ ShamrockLee ];
|
||||||
};
|
};
|
||||||
} ./patch-rc-path-fish.sh).overrideAttrs (oldAttrs: {
|
passthru.tests = {
|
||||||
passthru.tests = {
|
inherit (tests) test-fish;
|
||||||
inherit (tests) test-fish;
|
};
|
||||||
};
|
} ./patch-rc-path-fish.sh;
|
||||||
});
|
patchRcPathPosix = makeSetupHook
|
||||||
patchRcPathPosix = (makeSetupHook
|
|
||||||
{
|
{
|
||||||
name = "patch-rc-path-posix";
|
name = "patch-rc-path-posix";
|
||||||
substitutions = {
|
substitutions = {
|
||||||
|
@ -56,9 +53,8 @@ in
|
||||||
description = "Setup-hook to inject source-time PATH prefix to a POSIX shell script";
|
description = "Setup-hook to inject source-time PATH prefix to a POSIX shell script";
|
||||||
maintainers = with maintainers; [ ShamrockLee ];
|
maintainers = with maintainers; [ ShamrockLee ];
|
||||||
};
|
};
|
||||||
} ./patch-rc-path-posix.sh).overrideAttrs (oldAttrs: {
|
passthru.tests = {
|
||||||
passthru.tests = {
|
inherit (tests) test-posix;
|
||||||
inherit (tests) test-posix;
|
};
|
||||||
};
|
} ./patch-rc-path-posix.sh;
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue