Merge pull request #190231 from figsoda/kubespy-version
kubespy: fix version command and install completion files
This commit is contained in:
commit
2b2b8546b1
1 changed files with 10 additions and 7 deletions
|
@ -13,15 +13,18 @@ buildGoModule rec {
|
|||
|
||||
vendorSha256 = "sha256-HmMh5jrRGs4rtN9GLddS9IwITyvVmOrL5TShhQeyxKU=";
|
||||
|
||||
nativeBuildInputs = [ installShellFiles ];
|
||||
|
||||
doCheck = false;
|
||||
|
||||
# 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
|
||||
# '';
|
||||
ldflags = [ "-X" "github.com/pulumi/kubespy/version.Version=${version}" ];
|
||||
|
||||
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