mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 03:17:13 +00:00
2f817d5c77
New release of Go implementation of Kubectx: https://github.com/ahmetb/kubectx/releases/tag/v0.9.1
30 lines
771 B
Nix
30 lines
771 B
Nix
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "kubectx";
|
|
version = "0.9.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ahmetb";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1c7y5hj4w72bm6y3riw0acayn4w9x7bbf1vykqcprbyw3a3dvcsw";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|