Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at fix-function-merge 34 lines 788 B view raw
1{ lib, buildGoModule, fetchFromGitHub, installShellFiles }: 2 3buildGoModule rec { 4 pname = "kubectx"; 5 version = "0.9.5"; 6 7 src = fetchFromGitHub { 8 owner = "ahmetb"; 9 repo = pname; 10 rev = "v${version}"; 11 hash = "sha256-HVmtUhdMjbkyMpTgbsr5Mm286F9Q7zbc5rOxi7OBZEg="; 12 }; 13 14 vendorHash = "sha256-3xetjviMuH+Nev12DB2WN2Wnmw1biIDAckUSGVRHQwM="; 15 16 nativeBuildInputs = [ installShellFiles ]; 17 18 ldflags = [ 19 "-s" 20 "-w" 21 "-X main.version=${version}" 22 ]; 23 24 postInstall = '' 25 installShellCompletion completion/* 26 ''; 27 28 meta = with lib; { 29 description = "Fast way to switch between clusters and namespaces in kubectl!"; 30 license = licenses.asl20; 31 homepage = "https://github.com/ahmetb/kubectx"; 32 maintainers = with maintainers; [ jlesquembre ]; 33 }; 34}