diff --git a/pkgs/by-name/ku/kubie/package.nix b/pkgs/by-name/ku/kubie/package.nix index cf25e473476a..0b305dfe42eb 100644 --- a/pkgs/by-name/ku/kubie/package.nix +++ b/pkgs/by-name/ku/kubie/package.nix @@ -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; {