Unverified Commit 88e1c5d4 authored by Kenny MacDermid's avatar Kenny MacDermid
Browse files

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.
parent 650fe873
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -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";