mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-11 12:15:34 +03:00
kubie: wrap kubectl
kubie executes kubectl to list namespaces for `kubie ns` command.
This commit is contained in:
parent
2c8957887f
commit
ca1ec659ee
1 changed files with 13 additions and 1 deletions
|
@ -1,8 +1,10 @@
|
|||
{
|
||||
lib,
|
||||
kubectl,
|
||||
rustPlatform,
|
||||
fetchFromGitHub,
|
||||
installShellFiles,
|
||||
makeWrapper,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
|
@ -20,10 +22,20 @@ rustPlatform.buildRustPackage rec {
|
|||
useFetchCargoVendor = true;
|
||||
cargoHash = "sha256-Yf8fAW65K7SLaRpvegjWBLVDV33sMGV+I1rqlWvx5Ss=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
nativeBuildInputs = [
|
||||
installShellFiles
|
||||
makeWrapper
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
installShellCompletion completion/kubie.bash
|
||||
|
||||
wrapProgram "$out/bin/kubie" \
|
||||
--prefix PATH : "${
|
||||
lib.makeBinPath [
|
||||
kubectl
|
||||
]
|
||||
}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue