1{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2
3buildGoModule rec {
4 pname = "kubectx";
5 version = "0.9.4";
6
7 src = fetchFromGitHub {
8 owner = "ahmetb";
9 repo = pname;
10 rev = "v${version}";
11 sha256 = "sha256-WY0zFt76mvdzk/s2Rzqys8n+DVw6qg7V6Y8JncOUVCM=";
12 };
13
14 vendorSha256 = "sha256-4sQaqC0BOsDfWH3cHy2EMQNMq6qiAcbV+RwxCdcSxsg=";
15
16 doCheck = false;
17
18 nativeBuildInputs = [ installShellFiles ];
19
20 postInstall = ''
21 installShellCompletion completion/*
22 '';
23
24 meta = with lib; {
25 description = "Fast way to switch between clusters and namespaces in kubectl!";
26 license = licenses.asl20;
27 homepage = "https://github.com/ahmetb/kubectx";
28 maintainers = with maintainers; [ jlesquembre ];
29 platforms = with platforms; unix;
30 };
31}