From 0379eb58b548780c9816b431f3a8c154d0e57adc Mon Sep 17 00:00:00 2001 From: Dima Date: Thu, 29 Jan 2026 00:26:25 +0100 Subject: [PATCH] librewolf: optimizing build Based on linked conversations, removing debug symbols and switching to thinlto. The purpose is to make the build more manageable for the nix build infrastructure without sacrificing too much. For more details see https://github.com/NixOS/nixpkgs/issues/482250 --- pkgs/applications/networking/browsers/librewolf/librewolf.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/applications/networking/browsers/librewolf/librewolf.nix b/pkgs/applications/networking/browsers/librewolf/librewolf.nix index a87745795204..2a964bb1ab76 100644 --- a/pkgs/applications/networking/browsers/librewolf/librewolf.nix +++ b/pkgs/applications/networking/browsers/librewolf/librewolf.nix @@ -11,6 +11,10 @@ rec { extraConfigureFlags = [ "--with-unsigned-addon-scopes=app,system" "--disable-default-browser-agent" + # Flags based on discussion in https://github.com/NixOS/nixpkgs/issues/482250 + "--disable-debug" + "--disable-debug-symbols" + "--enable-lto=thin,cross" ]; extraPostPatch = ''