kubie: wrap kubectl program, add fish completion (#410119)

This commit is contained in:
Aleksana
2025-06-06 14:19:04 +08:00
committed by GitHub
+14 -2
View File
@@ -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; {