ieure pushed a commit to branch master
in repository guix.

commit 79cc8ba94e7e68e79e6334c33502e243158717ac
Author: Ian Eure <[email protected]>
AuthorDate: Thu Apr 10 21:55:11 2025 -0700

    gnu: librewolf: Repace 'patch-config with 'expand-extension-scope.
    
    With the Mozzarella changes moved to 'use-mozzarella, 'fix-config no longer
    reflects what this phase is doing; rename it.  Also, move it to run after
    'unpack, and modify the file in the source tree, rather than after 'install,
    modifying the file in the package output.
    
    * gnu/packages/librewolf.scm (librewolf):
    [phase 'patch-config]: Rename to 'expand-extension-scope.  Run earlier, and
    work on the source tree, not the package output.
    
    Change-Id: If226a70daa780d652b2bb3028c888d029c765444
---
 gnu/packages/librewolf.scm | 19 ++++++++-----------
 1 file changed, 8 insertions(+), 11 deletions(-)

diff --git a/gnu/packages/librewolf.scm b/gnu/packages/librewolf.scm
index 6d10b8e52d..96f2319516 100644
--- a/gnu/packages/librewolf.scm
+++ b/gnu/packages/librewolf.scm
@@ -322,6 +322,14 @@
               (substitute* "lw/librewolf.cfg"
                 (("defaultPref\\(\"browser\\.ml\\.")
                  "lockPref(\"browser.ml."))))
+          (add-after 'unpack 'expand-extension-scope
+            (lambda* _
+                ;; Required for Guix packaged extensions
+                ;; SCOPE_PROFILE=1, SCOPE_APPLICATION=4, SCOPE_SYSTEM=8
+                ;; Default is 5.
+                (substitute* "lw/librewolf.cfg"
+                  (("defaultPref\\(\"extensions.enabledScopes\", 5\\)")
+                   "defaultPref(\"extensions.enabledScopes\", 13)"))))
           (add-after 'unpack 'use-mozzarella
             (lambda _
               (substitute*
@@ -556,17 +564,6 @@
                             '("mesa" "pciutils"))))
                 (wrap-program (car (find-files lib "^glxtest$"))
                   `("LD_LIBRARY_PATH" prefix ,libs)))))
-          (add-after 'install 'patch-config
-            (lambda* (#:key inputs #:allow-other-keys)
-              (let ((lib (string-append #$output "/lib/librewolf"))
-                    (config-file "librewolf.cfg"))
-
-                ;; Required for Guix packaged extensions
-                ;; SCOPE_PROFILE=1, SCOPE_APPLICATION=4, SCOPE_SYSTEM=8
-                ;; Default is 5.
-                (substitute* (in-vicinity lib config-file)
-                  (("defaultPref\\(\"extensions.enabledScopes\", 5\\)")
-                   "defaultPref(\"extensions.enabledScopes\", 13)")))))
           (add-after 'install 'wrap-program
             (lambda* (#:key inputs outputs #:allow-other-keys)
               ;; The following two functions are from Guix's icecat package in

Reply via email to