kubespy: install completion files
This commit is contained in:
parent
49a891ba59
commit
87c8afa3b4
|
@ -13,17 +13,18 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-HmMh5jrRGs4rtN9GLddS9IwITyvVmOrL5TShhQeyxKU=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
ldflags = [ "-X" "github.com/pulumi/kubespy/version.Version=${version}" ];
|
||||
|
||||
# TODO: enable after https://github.com/pulumi/kubespy/issues/72 is addressed.
|
||||
# postInstall = ''
|
||||
# for shell in bash zsh; do
|
||||
# $out/bin/kubespy completion $shell > kubespy.$shell
|
||||
# installShellCompletion kubespy.$shell
|
||||
# done
|
||||
# '';
|
||||
postInstall = ''
|
||||
for shell in bash fish zsh; do
|
||||
$out/bin/kubespy completion $shell > kubespy.$shell
|
||||
installShellCompletion kubespy.$shell
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "A tool to observe Kubernetes resources in real time";
|
||||
|
|
Loading…
Reference in a new issue