From 63ecebe2a3ffe0aaa2c9b371d1bb52aee0aa6496 Mon Sep 17 00:00:00 2001 From: dadada Date: Sun, 9 Jul 2023 02:16:56 +0200 Subject: [PATCH] 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. --- pkgs/servers/soft-serve/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/soft-serve/default.nix b/pkgs/servers/soft-serve/default.nix index 5072869c39b6..01a5ea9d6dd0 100644 --- a/pkgs/servers/soft-serve/default.nix +++ b/pkgs/servers/soft-serve/default.nix @@ -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; {