2021-01-25 08:26:54 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
2018-08-12 10:24:42 +01:00
|
|
|
|
2020-06-12 17:19:54 +01:00
|
|
|
buildGoModule rec {
|
2018-11-04 23:32:52 +00:00
|
|
|
pname = "kubectx";
|
2021-02-28 18:08:22 +00:00
|
|
|
version = "0.9.3";
|
2018-08-12 10:24:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ahmetb";
|
2018-11-04 23:32:52 +00:00
|
|
|
repo = pname;
|
2018-08-12 10:24:42 +01:00
|
|
|
rev = "v${version}";
|
2021-02-28 18:08:22 +00:00
|
|
|
sha256 = "sha256-anTogloat0YJN6LR6mww5IPwokHYoDY6L7i2pMzI8/M=";
|
2018-08-12 10:24:42 +01:00
|
|
|
};
|
|
|
|
|
2021-02-25 11:39:10 +00:00
|
|
|
vendorSha256 = "sha256-4sQaqC0BOsDfWH3cHy2EMQNMq6qiAcbV+RwxCdcSxsg=";
|
2018-10-03 11:58:06 +01:00
|
|
|
|
2020-08-04 01:26:27 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2020-06-12 17:19:54 +01:00
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
2018-10-03 11:58:06 +01:00
|
|
|
|
2020-06-12 17:19:54 +01:00
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion completion/*
|
2018-08-12 10:24:42 +01:00
|
|
|
'';
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2018-08-12 10:24:42 +01:00
|
|
|
description = "Fast way to switch between clusters and namespaces in kubectl!";
|
|
|
|
license = licenses.asl20;
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/ahmetb/kubectx";
|
2020-06-12 17:19:54 +01:00
|
|
|
maintainers = with maintainers; [ jlesquembre ];
|
2018-08-12 10:24:42 +01:00
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|