From ddc59b790063200b95b4bb4abb66660263b895d1 Mon Sep 17 00:00:00 2001 From: squalus Date: Sat, 24 Aug 2024 10:36:59 -0700 Subject: [PATCH] librewolf-unwrapped: add librewolf pref pane - Adds the Librewolf preferences pane - Adds an extra patching step from the upstream build script https://codeberg.org/librewolf/source/src/commit/1b75cbb46/scripts/librewolf-patches.py#L132 Fixes #300107 --- .../networking/browsers/librewolf/librewolf.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/networking/browsers/librewolf/librewolf.nix b/pkgs/applications/networking/browsers/librewolf/librewolf.nix index 270d2155ede4..d0f32f0dbe3f 100644 --- a/pkgs/applications/networking/browsers/librewolf/librewolf.nix +++ b/pkgs/applications/networking/browsers/librewolf/librewolf.nix @@ -6,7 +6,7 @@ rec { inherit (src) packageVersion firefox source; - extraPatches = [ ]; + extraPatches = [ "${source}/patches/pref-pane/pref-pane-small.patch" ]; extraConfigureFlags = [ "--with-app-name=librewolf" @@ -25,6 +25,12 @@ rec { cp ${source}/assets/search-config.json services/settings/dumps/main/search-config.json sed -i '/MOZ_SERVICES_HEALTHREPORT/ s/True/False/' browser/moz.configure sed -i '/MOZ_NORMANDY/ s/True/False/' browser/moz.configure + + cp ${source}/patches/pref-pane/category-librewolf.svg browser/themes/shared/preferences + cp ${source}/patches/pref-pane/librewolf.css browser/themes/shared/preferences + cp ${source}/patches/pref-pane/librewolf.inc.xhtml browser/components/preferences + cp ${source}/patches/pref-pane/librewolf.js browser/components/preferences + cat ${source}/patches/pref-pane/preferences.ftl >> browser/locales/en-US/browser/preferences/preferences.ftl ''; extraPrefsFiles = [ "${src.settings}/librewolf.cfg" ];