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-03 10:07:44 -04:00
parent 650fe87347
commit 88e1c5d404
No known key found for this signature in database
GPG Key ID: 88B5D54B9ACB2F23

View File

@ -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";