From 88e1c5d40464bb8a0b329efb77e86b963c5e97e8 Mon Sep 17 00:00:00 2001 From: Kenny MacDermid Date: Sun, 3 Nov 2024 10:07:44 -0400 Subject: [PATCH] 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. --- pkgs/by-name/pl/plandex-server/package.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/by-name/pl/plandex-server/package.nix b/pkgs/by-name/pl/plandex-server/package.nix index a1d0c846eb58..4511a3a518ff 100644 --- a/pkgs/by-name/pl/plandex-server/package.nix +++ b/pkgs/by-name/pl/plandex-server/package.nix @@ -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";