2020-06-12 09:19:54 -07:00
|
|
|
{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2018-08-12 02:24:42 -07:00
|
|
|
|
2020-06-12 09:19:54 -07:00
|
|
|
buildGoModule rec {
|
2018-11-04 15:32:52 -08:00
|
|
|
pname = "kubectx";
|
2020-07-01 21:28:36 -07:00
|
|
|
version = "0.9.1";
|
2018-08-12 02:24:42 -07:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ahmetb";
|
2018-11-04 15:32:52 -08:00
|
|
|
repo = pname;
|
2018-08-12 02:24:42 -07:00
|
|
|
rev = "v${version}";
|
2020-07-01 21:28:36 -07:00
|
|
|
sha256 = "1c7y5hj4w72bm6y3riw0acayn4w9x7bbf1vykqcprbyw3a3dvcsw";
|
2018-08-12 02:24:42 -07:00
|
|
|
};
|
|
|
|
|
2020-06-12 09:19:54 -07:00
|
|
|
vendorSha256 = "168hfdc2rfwpz2ls607bz5vsm1aw4brhwm8hmbiq1n1l2dn2dj0y";
|
2018-10-03 03:58:06 -07:00
|
|
|
|
2020-08-03 17:26:27 -07:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-12 09:19:54 -07:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2018-10-03 03:58:06 -07:00
|
|
|
|
2020-06-12 09:19:54 -07:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion completion/*
|
2018-08-12 02:24:42 -07:00
|
|
|
'';
|
|
|
|
|
2020-06-12 09:19:54 -07:00
|
|
|
meta = with stdenv.lib; {
|
2018-08-12 02:24:42 -07:00
|
|
|
description = "Fast way to switch between clusters and namespaces in kubectl!";
|
|
|
|
license = licenses.asl20;
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://github.com/ahmetb/kubectx";
|
2020-06-12 09:19:54 -07:00
|
|
|
maintainers = with maintainers; [ jlesquembre ];
|
2018-08-12 02:24:42 -07:00
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|