nixpkgs/pkgs/applications/networking/cluster/kubespy/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

36 lines
914 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "kubespy";
2023-04-30 03:45:51 +00:00
version = "0.6.2";
src = fetchFromGitHub {
rev = "v${version}";
owner = "pulumi";
repo = "kubespy";
2023-04-30 03:45:51 +00:00
sha256 = "sha256-eSQl8K+a9YcKXE80bl25+alHoBG8T+LCYOd4Bd9QSdY=";
};
2023-04-30 03:45:51 +00:00
vendorHash = "sha256-brs4QIo4QoLHU95llBHN51zYcgQgN7kbMJDMy2OYOsk=";
2022-09-08 02:45:56 +00:00
nativeBuildInputs = [ installShellFiles ];
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
'';
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 ];
};
}