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 <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2023-07-02 11:29:04 +03:00 committed by tazjin
parent 3a2035c8b9
commit 26a8b38a3c

View file

@ -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"