From 50e92c439d4ca01d5461be3b3849c779ddccb143 Mon Sep 17 00:00:00 2001 From: Alexandros Feuerstein <32029275+afeuerstein@users.noreply.github.com> Date: Sat, 6 Jun 2026 00:00:50 +0200 Subject: [PATCH] librewolf: only do LTO on linux --- pkgs/by-name/li/librewolf-unwrapped/librewolf.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/li/librewolf-unwrapped/librewolf.nix b/pkgs/by-name/li/librewolf-unwrapped/librewolf.nix index 4eaa532ebe08..8db148066c60 100644 --- a/pkgs/by-name/li/librewolf-unwrapped/librewolf.nix +++ b/pkgs/by-name/li/librewolf-unwrapped/librewolf.nix @@ -1,4 +1,9 @@ -{ callPackage, runCommand }: +{ + callPackage, + runCommand, + lib, + stdenv, +}: let src = callPackage ./src.nix { }; in @@ -14,6 +19,8 @@ rec { # Flags based on discussion in https://github.com/NixOS/nixpkgs/issues/482250 "--disable-debug" "--disable-debug-symbols" + ] + ++ lib.optionals stdenv.hostPlatform.isLinux [ "--enable-lto=thin,cross" ];