nixpkgs/pkgs/development/tools/kubectx/default.nix

32 lines
781 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2018-08-12 11:24:42 +02:00
buildGoModule rec {
pname = "kubectx";
version = "0.9.1";
2018-08-12 11:24:42 +02:00
src = fetchFromGitHub {
owner = "ahmetb";
repo = pname;
2018-08-12 11:24:42 +02:00
rev = "v${version}";
sha256 = "1c7y5hj4w72bm6y3riw0acayn4w9x7bbf1vykqcprbyw3a3dvcsw";
2018-08-12 11:24:42 +02:00
};
vendorSha256 = "168hfdc2rfwpz2ls607bz5vsm1aw4brhwm8hmbiq1n1l2dn2dj0y";
doCheck = false;
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion completion/*
2018-08-12 11:24:42 +02:00
'';
meta = with lib; {
2018-08-12 11:24:42 +02: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 11:24:42 +02:00
platforms = with platforms; unix;
};
}