We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 136cada + 1d8ea85 commit 2066463Copy full SHA for 2066463
pkgs/by-name/ku/kubie/package.nix
@@ -1,8 +1,10 @@
1
{
2
lib,
3
+ kubectl,
4
rustPlatform,
5
fetchFromGitHub,
6
installShellFiles,
7
+ makeWrapper,
8
}:
9
10
rustPlatform.buildRustPackage rec {
@@ -20,10 +22,20 @@ rustPlatform.buildRustPackage rec {
20
22
useFetchCargoVendor = true;
21
23
cargoHash = "sha256-Yf8fAW65K7SLaRpvegjWBLVDV33sMGV+I1rqlWvx5Ss=";
24
- nativeBuildInputs = [ installShellFiles ];
25
+ nativeBuildInputs = [
26
+ installShellFiles
27
+ makeWrapper
28
+ ];
29
30
postInstall = ''
- installShellCompletion completion/kubie.bash
31
+ installShellCompletion completion/kubie.{bash,fish}
32
+
33
+ wrapProgram "$out/bin/kubie" \
34
+ --prefix PATH : "${
35
+ lib.makeBinPath [
36
+ kubectl
37
+ ]
38
+ }"
39
'';
40
41
meta = with lib; {
0 commit comments