Merge pull request #317499 from rgroemmer/krew-add-git

krew: add missing runtime dependency git
This commit is contained in:
Weijia Wang 2024-06-12 00:24:21 +02:00 committed by GitHub
commit 29bd804b9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub }:
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, gitMinimal }:
buildGoModule rec {
pname = "krew";
@ -15,6 +15,13 @@ buildGoModule rec {
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";