plandex-server: add git to path

When running `plandex-server` as a service it will panic as it's
unable to find git. Add it to the programs PATH.
This commit is contained in:
Kenny MacDermid
2024-11-04 13:07:53 -04:00
parent 650fe87347
commit 88e1c5d404
@@ -2,6 +2,7 @@
lib,
buildGoModule,
fetchFromGitHub,
makeWrapper,
git,
}:
buildGoModule rec {
@@ -24,6 +25,13 @@ buildGoModule rec {
cp -r migrations $out/migrations
'';
postFixup = ''
wrapProgram $out/bin/plandex-server \
--prefix PATH : ${lib.makeBinPath [ git ]}
'';
nativeBuildInputs = [ makeWrapper ];
nativeCheckInputs = [ git ];
sourceRoot = "${src.name}/app/server";