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:
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";
|
||||
|
Loading…
Reference in New Issue
Block a user