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:
parent
5c78e5b4aa
commit
63ecebe2a3
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, git }:
|
{ lib, buildGoModule, fetchFromGitHub, makeWrapper, git, bash }:
|
||||||
|
|
||||||
buildGoModule rec {
|
buildGoModule rec {
|
||||||
pname = "soft-serve";
|
pname = "soft-serve";
|
||||||
@ -20,8 +20,10 @@ buildGoModule rec {
|
|||||||
nativeBuildInputs = [ makeWrapper ];
|
nativeBuildInputs = [ makeWrapper ];
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
# Soft-serve generates git-hooks at run-time.
|
||||||
|
# The scripts require git and bash inside the path.
|
||||||
wrapProgram $out/bin/soft \
|
wrapProgram $out/bin/soft \
|
||||||
--prefix PATH : "${lib.makeBinPath [ git ]}"
|
--prefix PATH : "${lib.makeBinPath [ git bash ]}"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
Loading…
Reference in New Issue
Block a user