From 26a8b38a3ce546599dba9eb0627651d2c7c71f7d Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 2 Jul 2023 11:29:04 +0300 Subject: chore(3p/josh): enable debug information in builds Change-Id: I09e980e871bec32397755fb0cafeaa61701f47a7 Reviewed-on: https://cl.tvl.fyi/c/depot/+/8916 Tested-by: BuildkiteCI Reviewed-by: sterni --- third_party/josh/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/third_party/josh/default.nix b/third_party/josh/default.nix index ce472b32c20b..e6cb1ac0e156 100644 --- a/third_party/josh/default.nix +++ b/third_party/josh/default.nix @@ -28,6 +28,7 @@ naersk.buildPackage { pkg-config ]; + dontStrip = true; cargoBuildOptions = x: x ++ [ "-p" "josh-filter" @@ -36,6 +37,10 @@ naersk.buildPackage { ]; overrideMain = x: { + preBuild = x.preBuild or "" + '' + echo 'debug = true' >> Cargo.toml + ''; + nativeBuildInputs = (x.nativeBuildInputs or [ ]) ++ [ pkgs.makeWrapper ]; postInstall = '' wrapProgram $out/bin/josh-proxy --prefix PATH : "${pkgs.git}/bin" -- cgit 1.4.1