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 d30d816 commit b6aec13Copy full SHA for b6aec13
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
@@ -19,6 +20,15 @@ rustPlatform.buildRustPackage (finalAttrs: {
19
20
21
passthru.updateScript = nix-update-script { };
22
23
+ nativeBuildInputs = [ installShellFiles ];
24
+
25
+ postInstall = ''
26
+ installShellCompletion --cmd ${finalAttrs.pname} \
27
+ --bash <($out/bin/${finalAttrs.pname} completions bash) \
28
+ --fish <($out/bin/${finalAttrs.pname} completions fish) \
29
+ --zsh <($out/bin/${finalAttrs.pname} completions zsh)
30
+ '';
31
32
meta = {
33
description = "Kubectl version managing shim that invokes the correct kubectl version";
34
homepage = "https://gitlab.com/cromulentbanana/korrect";
0 commit comments