nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 44 lines 926 B view raw
1{ 2 lib, 3 buildGoModule, 4 fetchFromGitHub, 5 installShellFiles, 6}: 7 8buildGoModule rec { 9 pname = "kubespy"; 10 version = "0.6.3"; 11 12 src = fetchFromGitHub { 13 rev = "v${version}"; 14 owner = "pulumi"; 15 repo = "kubespy"; 16 sha256 = "sha256-l/vOIFvCQHq+gOr38SpVZ8ShZdI1bP4G5PY4hKhkCU0="; 17 }; 18 19 vendorHash = "sha256-4q+eFMrcZsEdk1W7aorIrfS3oVAuD4V0KQ7oJ/5d8nk="; 20 21 nativeBuildInputs = [ installShellFiles ]; 22 23 doCheck = false; 24 25 ldflags = [ 26 "-X" 27 "github.com/pulumi/kubespy/version.Version=${version}" 28 ]; 29 30 postInstall = '' 31 for shell in bash fish zsh; do 32 $out/bin/kubespy completion $shell > kubespy.$shell 33 installShellCompletion kubespy.$shell 34 done 35 ''; 36 37 meta = { 38 description = "Tool to observe Kubernetes resources in real time"; 39 mainProgram = "kubespy"; 40 homepage = "https://github.com/pulumi/kubespy"; 41 license = lib.licenses.asl20; 42 maintainers = [ ]; 43 }; 44}