about summary refs log tree commit diff
path: root/third_party/josh
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2023-07-02T08·29+0300
committertazjin <tazjin@tvl.su>2023-07-02T16·38+0000
commit26a8b38a3ce546599dba9eb0627651d2c7c71f7d (patch)
tree3a537a8c1e4a5982f849007adf95107612866aff /third_party/josh
parent3a2035c8b920279d7ccc7d7ab0954bb4ae0a0c4a (diff)
chore(3p/josh): enable debug information in builds r/6388
Change-Id: I09e980e871bec32397755fb0cafeaa61701f47a7
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8916
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
Diffstat (limited to 'third_party/josh')
-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 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"