about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--third_party/josh/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/third_party/josh/default.nix b/third_party/josh/default.nix
index 70786a2648..c82f91f80c 100644
--- a/third_party/josh/default.nix
+++ b/third_party/josh/default.nix
@@ -29,5 +29,10 @@ depot.third_party.naersk.buildPackage {
 
   overrideMain = x: {
     patches = [ ./0001-josh-proxy-Always-require-authentication-when-pushin.patch ];
+
+    nativeBuildInputs = (x.nativeBuildInputs or [ ]) ++ [ pkgs.makeWrapper ];
+    postInstall = ''
+      wrapProgram $out/bin/josh-proxy --prefix PATH : "${pkgs.git}/bin"
+    '';
   };
 }