krew: add missing runtime dependency git

This commit is contained in:
Raphael Groemmer
2024-06-09 13:55:07 +02:00
committed by rgroemmer
parent cf5c8901a4
commit 79c54e02dc
+8 -1
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";