kubespy: install completion files

main
figsoda 2 years ago
parent 49a891ba59
commit 87c8afa3b4
  1. 15
      pkgs/applications/networking/cluster/kubespy/default.nix

@ -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…
Cancel
Save