depot/third_party/nixpkgs/pkgs/development/tools/krew/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

32 lines
813 B
Nix

{ lib, buildGoModule, fetchFromGitHub, makeWrapper, gitMinimal }:
buildGoModule rec {
pname = "krew";
version = "0.4.4";
src = fetchFromGitHub {
owner = "kubernetes-sigs";
repo = "krew";
rev = "v${version}";
sha256 = "sha256-SN6F7EmkgjtU4UHYPXWBiuXSSagjQYD6SBYBXRrSVGA=";
};
vendorHash = "sha256-3tEesDezIyB6005PZmOcrnEeAIvc5za3FxTmBBbKf7s=";
subPackages = [ "cmd/krew" ];
nativeBuildInputs = [ makeWrapper ];
postFixup = ''
wrapProgram $out/bin/krew \
--prefix PATH : ${lib.makeBinPath [ gitMinimal ]}
'';
meta = with lib; {
description = "Package manager for kubectl plugins";
mainProgram = "krew";
homepage = "https://github.com/kubernetes-sigs/krew";
maintainers = with maintainers; [ vdemeester ];
license = lib.licenses.asl20;
};
}