kubie: wrap kubectl program, add fish completion (#410119)
This commit is contained in:
@@ -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
|
||||
installShellCompletion completion/kubie.{bash,fish}
|
||||
|
||||
wrapProgram "$out/bin/kubie" \
|
||||
--prefix PATH : "${
|
||||
lib.makeBinPath [
|
||||
kubectl
|
||||
]
|
||||
}"
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
Reference in New Issue
Block a user