nixos/uptime-kuma: Add additional lockdown settings to systemd unit (#361452)
[NixPkgs.git] / pkgs / by-name / ku / kubespy / package.nix
blobb9e46525f20ade804e85ba30e62734855a34650a
1 { lib, buildGoModule, fetchFromGitHub, installShellFiles }:
3 buildGoModule rec {
4   pname = "kubespy";
5   version = "0.6.3";
7   src = fetchFromGitHub {
8     rev = "v${version}";
9     owner = "pulumi";
10     repo = "kubespy";
11     sha256 = "sha256-l/vOIFvCQHq+gOr38SpVZ8ShZdI1bP4G5PY4hKhkCU0=";
12   };
14   vendorHash = "sha256-4q+eFMrcZsEdk1W7aorIrfS3oVAuD4V0KQ7oJ/5d8nk=";
16   nativeBuildInputs = [ installShellFiles ];
18   doCheck = false;
20   ldflags = [ "-X" "github.com/pulumi/kubespy/version.Version=${version}" ];
22   postInstall = ''
23     for shell in bash fish zsh; do
24       $out/bin/kubespy completion $shell > kubespy.$shell
25       installShellCompletion kubespy.$shell
26     done
27   '';
29   meta = with lib; {
30     description = "Tool to observe Kubernetes resources in real time";
31     mainProgram = "kubespy";
32     homepage = "https://github.com/pulumi/kubespy";
33     license = licenses.asl20;
34     maintainers = with maintainers; [ blaggacao ];
35   };