summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorIan Eure <ian@retrospec.tv>2025-04-10 21:55:11 -0700
committerIan Eure <ian@retrospec.tv>2025-04-11 17:04:07 -0700
commit79cc8ba94e7e68e79e6334c33502e243158717ac (patch)
tree1ce81dcbf46f6461a7ae8f63461bf3121dab4152 /gnu
parentf30dccbb1a6c58835d33e2b3769671ee622c4f54 (diff)
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
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/librewolf.scm19
1 files changed, 8 insertions, 11 deletions
diff --git a/gnu/packages/librewolf.scm b/gnu/packages/librewolf.scm
index 6d10b8e52db..96f2319516f 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