nixpkgs/pkgs/development/tools/kubectx/default.nix
José Luis Lafuente a89e9a2eec
kubectx: re-pack, switch from bash to go
With release 0.9, kubectx was rewritten in go. For more info see
https://github.com/ahmetb/kubectx/releases/tag/v0.9.0
2020-06-13 10:10:46 +02:00

30 lines
771 B
Nix

{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
buildGoModule rec {
pname = "kubectx";
version = "0.9.0";
src = fetchFromGitHub {
owner = "ahmetb";
repo = pname;
rev = "v${version}";
sha256 = "1b22jk8zl944w5zn3s7ybkkbmzp9519x32pfqwd1malfly7dzf55";
};
vendorSha256 = "168hfdc2rfwpz2ls607bz5vsm1aw4brhwm8hmbiq1n1l2dn2dj0y";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion completion/*
'';
meta = with stdenv.lib; {
description = "Fast way to switch between clusters and namespaces in kubectl!";
license = licenses.asl20;
homepage = "https://github.com/ahmetb/kubectx";
maintainers = with maintainers; [ jlesquembre ];
platforms = with platforms; unix;
};
}