mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 14:13:35 +00:00
37 lines
948 B
Nix
37 lines
948 B
Nix
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kubespy";
|
|
version = "0.6.1";
|
|
|
|
src = fetchFromGitHub {
|
|
rev = "v${version}";
|
|
owner = "pulumi";
|
|
repo = "kubespy";
|
|
sha256 = "sha256-ChHrDAmPUjdyiF+XQONQMDN3UZQMM80BR+m+E8o3gnw=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-HmMh5jrRGs4rtN9GLddS9IwITyvVmOrL5TShhQeyxKU=";
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
doCheck = false;
|
|
|
|
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";
|
|
homepage = "https://github.com/pulumi/kubespy";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ blaggacao ];
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|