14 src = fetchFromGitHub {
15 owner = "danielfoehrKn";
18 hash = "sha256-cvMTuiXSpx+ZicN1P3JjGExzW7d51nN1YIpsGArXHzw=";
23 subPackages = [ "cmd/main.go" ];
28 "-X github.com/danielfoehrkn/kubeswitch/cmd/switcher.version=${version}"
29 "-X github.com/danielfoehrkn/kubeswitch/cmd/switcher.buildDate=1970-01-01"
32 nativeBuildInputs = [ installShellFiles ];
35 mv $out/bin/main $out/bin/switcher
36 for shell in bash zsh fish; do
37 $out/bin/switcher --cmd switcher completion $shell > switcher.$shell
38 installShellCompletion --$shell switcher.$shell
42 passthru.tests.version = testers.testVersion { package = kubeswitch; };
45 changelog = "https://github.com/danielfoehrKn/kubeswitch/releases/tag/${version}";
46 description = "The kubectx for operators, a drop-in replacement for kubectx";
47 license = lib.licenses.asl20;
48 homepage = "https://github.com/danielfoehrKn/kubeswitch";
49 maintainers = with lib.maintainers; [ bryanasdev000 ];
50 mainProgram = "switcher";