lol
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 patches = [
15 ./bump-golang-x-sys.patch
16 ];
17
18 vendorSha256 = "sha256-p4KUBmJw6hWG1J2qwg4QBbh6Vo1cr/HQz0IqytIDJjU=";
19
20 nativeBuildInputs = [ installShellFiles ];
21
22 postInstall = ''
23 installShellCompletion completion/*
24 '';
25
26 meta = with lib; {
27 description = "Fast way to switch between clusters and namespaces in kubectl!";
28 license = licenses.asl20;
29 homepage = "https://github.com/ahmetb/kubectx";
30 maintainers = with maintainers; [ jlesquembre ];
31 };
32}