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.
1 parent 7711284 commit 5d0717bCopy full SHA for 5d0717b
pkgs/by-name/ko/korrect/package.nix
@@ -3,6 +3,7 @@
3
stdenv,
4
fetchCrate,
5
rustPlatform,
6
+ installShellFiles,
7
nix-update-script,
8
}:
9
@@ -18,6 +19,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
18
19
20
passthru.updateScript = nix-update-script { };
21
22
+ nativeBuildInputs = [ installShellFiles ];
23
+
24
+ postInstall = ''
25
+ installShellCompletion --cmd ${finalAttrs.pname} \
26
+ --bash <($out/bin/${finalAttrs.pname} completions bash) \
27
+ --fish <($out/bin/${finalAttrs.pname} completions fish) \
28
+ --zsh <($out/bin/${finalAttrs.pname} completions zsh)
29
+ '';
30
31
meta = {
32
description = "Kubectl version managing shim that invokes the correct kubectl version";
33
homepage = "https://gitlab.com/cromulentbanana/korrect";
0 commit comments