From 309e5ad624c91d60b0d9eb32dca5dcb4a47dad85 Mon Sep 17 00:00:00 2001 From: Francesco Zanini Date: Wed, 23 Oct 2024 21:40:14 +0200 Subject: [PATCH] ripgrep-all: avoid producing debug symbols Upstream enabled `debug = true` for the release profiles, breaking the `wrapProgram` logic we have in the build. Additionally, we don't want to have debug symbols produced by default. --- pkgs/tools/text/ripgrep-all/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/text/ripgrep-all/default.nix b/pkgs/tools/text/ripgrep-all/default.nix index d65c399d5ce8..a44316517dc1 100644 --- a/pkgs/tools/text/ripgrep-all/default.nix +++ b/pkgs/tools/text/ripgrep-all/default.nix @@ -39,6 +39,9 @@ in rustPlatform.buildRustPackage rec { }; }; + # override debug=true set in Cargo.toml upstream + RUSTFLAGS = "-C debuginfo=none"; + nativeBuildInputs = [ makeWrapper poppler_utils ]; buildInputs = lib.optional stdenv.hostPlatform.isDarwin Security;