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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
771 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2018-08-12 09:24:42 +00:00
buildGoModule rec {
pname = "kubectx";
2021-07-07 00:18:33 +00:00
version = "0.9.4";
2018-08-12 09:24:42 +00:00
src = fetchFromGitHub {
owner = "ahmetb";
repo = pname;
2018-08-12 09:24:42 +00:00
rev = "v${version}";
2021-07-07 00:18:33 +00:00
sha256 = "sha256-WY0zFt76mvdzk/s2Rzqys8n+DVw6qg7V6Y8JncOUVCM=";
2018-08-12 09:24:42 +00:00
};
2022-08-02 23:08:08 +00:00
patches = [
./bump-golang-x-sys.patch
];
vendorSha256 = "sha256-p4KUBmJw6hWG1J2qwg4QBbh6Vo1cr/HQz0IqytIDJjU=";
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installShellCompletion completion/*
2018-08-12 09:24:42 +00:00
'';
meta = with lib; {
2018-08-12 09:24:42 +00: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 09:24:42 +00:00
};
}