nongnu: firefox: Update to 89.0.

* nongnu/packages/mozilla.scm (firefox): Update to 89.0.
[arguments]: Add fix-swgl-build.rs as work around for issue#116.
[native-inputs]: Use rust-cbindgen-0.19.

Co-authored-by: Pierre Langlois <pierre.langlois@gmx.com>
This commit is contained in:
Jonathan Brielmaier 2021-06-05 18:30:07 +02:00
parent 9d2bd2ed6c
commit fbfcd443dc
No known key found for this signature in database
GPG key ID: ECFC83988B4E4B9F

View file

@ -81,19 +81,19 @@
;; Update this id with every firefox update to it's release date. ;; Update this id with every firefox update to it's release date.
;; It's used for cache validation and therefor can lead to strange bugs. ;; It's used for cache validation and therefor can lead to strange bugs.
(define %firefox-build-id "20210505000000") (define %firefox-build-id "20210601000000")
(define-public firefox (define-public firefox
(package (package
(name "firefox") (name "firefox")
(version "88.0.1") (version "89.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (string-append "https://archive.mozilla.org/pub/firefox/releases/" (uri (string-append "https://archive.mozilla.org/pub/firefox/releases/"
version "/source/firefox-" version ".source.tar.xz")) version "/source/firefox-" version ".source.tar.xz"))
(sha256 (sha256
(base32 "1k0451ikq65n5lnf2k52nh4f3cnsbiq9vlym3xk9kzi81sp1xpw3")))) (base32 "02m9w3igb1higxnqp318r41khf936jm6szw4bcd0amb4g7axfhyv"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
`(#:configure-flags `(#:configure-flags
@ -142,6 +142,11 @@
,@%gnu-build-system-modules) ,@%gnu-build-system-modules)
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
;; See https://gitlab.com/nonguix/nonguix/-/issues/116 for details
(add-after 'unpack 'fix-swgl-build.rs
(lambda _
(substitute* "gfx/wr/swgl/build.rs"
((".flag\\(\"-ffast-math\"\\)") ""))))
(add-after 'unpack 'fix-preferences (add-after 'unpack 'fix-preferences
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((port (open-file "browser/app/profile/firefox.js" "a"))) (let ((port (open-file "browser/app/profile/firefox.js" "a")))
@ -385,7 +390,7 @@
("python" ,python) ("python" ,python)
("python2" ,python-2.7) ("python2" ,python-2.7)
("rust" ,rust-1.47) ("rust" ,rust-1.47)
("rust-cbindgen" ,rust-cbindgen-0.16) ("rust-cbindgen" ,rust-cbindgen-0.19)
("which" ,which) ("which" ,which)
("yasm" ,yasm))) ("yasm" ,yasm)))
(home-page "https://mozilla.org/firefox/") (home-page "https://mozilla.org/firefox/")