soft-serve: fix shell hook

This adds bash to the PATH of soft-serve. This is
required for the hooks to work, since they
are implemented in bash.
This commit is contained in:
dadada 2023-07-09 02:16:56 +02:00
parent 5c78e5b4aa
commit 63ecebe2a3
No known key found for this signature in database
GPG Key ID: EEB8D1CE62C4DFEA

View File

@ -1,4 +1,4 @@
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, git }:
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, git, bash }:
buildGoModule rec {
pname = "soft-serve";
@ -20,8 +20,10 @@ buildGoModule rec {
nativeBuildInputs = [ makeWrapper ];
postInstall = ''
# Soft-serve generates git-hooks at run-time.
# The scripts require git and bash inside the path.
wrapProgram $out/bin/soft \
--prefix PATH : "${lib.makeBinPath [ git ]}"
--prefix PATH : "${lib.makeBinPath [ git bash ]}"
'';
meta = with lib; {