mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
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 {
|
||||
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; {
|
||||
|
Loading…
Reference in New Issue
Block a user