diff options
author | Hilton Chain <hako@ultrarare.space> | 2024-12-11 23:30:12 +0800 |
---|---|---|
committer | Hilton Chain <hako@ultrarare.space> | 2024-12-13 13:07:45 +0800 |
commit | 4fe0608a5cc44e3f368dab98709d0ab4392a37ed (patch) | |
tree | d1075874c835b551bdc8eafda05a62c2b94d94f4 /nongnu/packages/mozilla.scm | |
parent | 5a7e61a0a5bc191d8558a845bd724a0d41e0afbd (diff) |
nongnu: firefox-esr: Support Guix icecat browser extensions.
* nongnu/packages/patches/firefox-esr-compare-paths.patch: New file.
* nongnu/packages/patches/firefox-esr-use-system-wide-dir.patch: New file.
* nongnu/packages/mozilla.scm (firefox-esr)[source]: Add them.
[arguments]<#:configure-flags>: Allow unsigned system addons.
[native-search-paths]: Add ICECAT_SYSTEM_DIR.
Diffstat (limited to 'nongnu/packages/mozilla.scm')
-rw-r--r-- | nongnu/packages/mozilla.scm | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/nongnu/packages/mozilla.scm b/nongnu/packages/mozilla.scm index e46d6d1..d6bc572 100644 --- a/nongnu/packages/mozilla.scm +++ b/nongnu/packages/mozilla.scm @@ -98,7 +98,15 @@ (uri (string-append "https://archive.mozilla.org/pub/firefox/releases/" version "/source/firefox-" version ".source.tar.xz")) (sha256 - (base32 "1awl0yhcv693q23p6zw9rw40gicpp6pakbx616qsl5w85d2arijz")))) + (base32 "1awl0yhcv693q23p6zw9rw40gicpp6pakbx616qsl5w85d2arijz")) + (patches + (map (lambda (patch) + (search-path + (map (cut string-append <> "/nongnu/packages/patches") + %load-path) + patch)) + '("firefox-esr-compare-paths.patch" + "firefox-esr-use-system-wide-dir.patch"))))) (build-system gnu-build-system) (arguments (list @@ -130,6 +138,11 @@ "--with-distribution-id=org.nonguix" "--disable-official-branding" + ;; Do not require addons in the global app or system directories to + ;; be signed by Mozilla. + "--allow-addon-sideload" + "--with-unsigned-addon-scopes=app,system" + ;; Features "--disable-tests" "--disable-updater" @@ -482,6 +495,11 @@ rust-cbindgen-0.26 which yasm)) + (native-search-paths + (list (search-path-specification + (variable "ICECAT_SYSTEM_DIR") + (separator #f) ;single entry + (files '("lib/icecat"))))) (home-page "https://mozilla.org/firefox/") (synopsis "Trademarkless version of Firefox") (description |