1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/tools/kubectx/default.nix

30 lines
771 B
Nix
Raw Normal View History

{ stdenv, buildGoModule, fetchFromGitHub, installShellFiles }:
2018-08-12 10:24:42 +01:00
buildGoModule rec {
pname = "kubectx";
2020-05-02 14:22:53 +01:00
version = "0.9.0";
2018-08-12 10:24:42 +01:00
src = fetchFromGitHub {
owner = "ahmetb";
repo = pname;
2018-08-12 10:24:42 +01:00
rev = "v${version}";
2020-05-02 14:22:53 +01:00
sha256 = "1b22jk8zl944w5zn3s7ybkkbmzp9519x32pfqwd1malfly7dzf55";
2018-08-12 10:24:42 +01:00
};
vendorSha256 = "168hfdc2rfwpz2ls607bz5vsm1aw4brhwm8hmbiq1n1l2dn2dj0y";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion completion/*
2018-08-12 10:24:42 +01:00
'';
meta = with stdenv.lib; {
2018-08-12 10:24:42 +01:00
description = "Fast way to switch between clusters and namespaces in kubectl!";
license = licenses.asl20;
homepage = "https://github.com/ahmetb/kubectx";
maintainers = with maintainers; [ jlesquembre ];
2018-08-12 10:24:42 +01:00
platforms = with platforms; unix;
};
}