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:
parent
3a2035c8b9
commit
26a8b38a3c
1 changed files with 5 additions and 0 deletions
5
third_party/josh/default.nix
vendored
5
third_party/josh/default.nix
vendored
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue