2020-07-03 17:42:29 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "kubespy";
|
2022-09-07 15:00:05 +00:00
|
|
|
version = "0.6.1";
|
2020-07-03 17:42:29 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
rev = "v${version}";
|
|
|
|
owner = "pulumi";
|
|
|
|
repo = "kubespy";
|
2022-09-07 15:00:05 +00:00
|
|
|
sha256 = "sha256-ChHrDAmPUjdyiF+XQONQMDN3UZQMM80BR+m+E8o3gnw=";
|
2020-07-03 17:42:29 +00:00
|
|
|
};
|
2020-07-31 03:58:04 +00:00
|
|
|
|
2022-09-07 15:00:05 +00:00
|
|
|
vendorSha256 = "sha256-HmMh5jrRGs4rtN9GLddS9IwITyvVmOrL5TShhQeyxKU=";
|
2020-07-31 03:58:04 +00:00
|
|
|
|
2022-09-08 02:45:56 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
|
2020-08-04 00:26:27 +00:00
|
|
|
doCheck = false;
|
|
|
|
|
2022-09-08 02:36:43 +00:00
|
|
|
ldflags = [ "-X" "github.com/pulumi/kubespy/version.Version=${version}" ];
|
|
|
|
|
2022-09-08 02:45:56 +00:00
|
|
|
postInstall = ''
|
|
|
|
for shell in bash fish zsh; do
|
|
|
|
$out/bin/kubespy completion $shell > kubespy.$shell
|
|
|
|
installShellCompletion kubespy.$shell
|
|
|
|
done
|
|
|
|
'';
|
2020-07-03 17:42:29 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tool to observe Kubernetes resources in real time";
|
|
|
|
homepage = "https://github.com/pulumi/kubespy";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ blaggacao ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|