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

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

35 lines
788 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
2018-08-12 09:24:42 +00:00
buildGoModule rec {
pname = "kubectx";
2023-12-23 10:39:28 +00:00
version = "0.9.5";
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}";
2023-12-23 10:39:28 +00:00
hash = "sha256-HVmtUhdMjbkyMpTgbsr5Mm286F9Q7zbc5rOxi7OBZEg=";
2018-08-12 09:24:42 +00:00
};
2023-12-23 10:39:28 +00:00
vendorHash = "sha256-3xetjviMuH+Nev12DB2WN2Wnmw1biIDAckUSGVRHQwM=";
nativeBuildInputs = [ installShellFiles ];
ldflags = [
"-s"
"-w"
"-X main.version=${version}"
];
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
};
}