nongnu: firefox: Enable the integration with native notifications.

* nongnu/packages/mozilla.scm (firefox)[input]: Add libnotify.
[arguments]<phases>: Add libnotify to LD_LIBRARY_PATH in 'wrap-program'.
(firefox-wayland): Dito.

Signed-off-by: Jonathan Brielmaier <jonathan.brielmaier@web.de>
This commit is contained in:
Zhu Zihao 2021-03-29 23:55:17 +08:00 committed by Jonathan Brielmaier
parent 60b295ce15
commit d97af23faf
No known key found for this signature in database
GPG Key ID: ECFC83988B4E4B9F

View File

@ -278,10 +278,13 @@
(lambda* (#:key inputs outputs #:allow-other-keys) (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out")) (let* ((out (assoc-ref outputs "out"))
(lib (string-append out "/lib")) (lib (string-append out "/lib"))
(ld-libs (map (lambda (x) (ld-libs
(string-append (assoc-ref inputs x) (map (lambda (x)
"/lib")) (string-append (assoc-ref inputs x)
'("pulseaudio" "mesa"))) "/lib"))
'("pulseaudio" "mesa"
;; For the integration of native notifications
"libnotify")))
(gtk-share (string-append (assoc-ref inputs "gtk+") (gtk-share (string-append (assoc-ref inputs "gtk+")
"/share"))) "/share")))
(wrap-program (car (find-files lib "^firefox$")) (wrap-program (car (find-files lib "^firefox$"))
@ -347,6 +350,7 @@
("libffi" ,libffi) ("libffi" ,libffi)
("libgnome" ,libgnome) ("libgnome" ,libgnome)
("libjpeg-turbo" ,libjpeg-turbo) ("libjpeg-turbo" ,libjpeg-turbo)
("libnotify" ,libnotify)
;; ("libpng-apng" ,libpng-apng) ;; ("libpng-apng" ,libpng-apng)
("libvpx" ,libvpx) ("libvpx" ,libvpx)
("libxcomposite" ,libxcomposite) ("libxcomposite" ,libxcomposite)
@ -407,7 +411,9 @@ the official icon and the name \"firefox\".")
(ld-libs (map (lambda (x) (ld-libs (map (lambda (x)
(string-append (assoc-ref inputs x) (string-append (assoc-ref inputs x)
"/lib")) "/lib"))
'("pulseaudio" "mesa"))) '("pulseaudio" "mesa"
;; For the integration of native notifications
"libnotify")))
(gtk-share (string-append (assoc-ref inputs "gtk+") (gtk-share (string-append (assoc-ref inputs "gtk+")
"/share"))) "/share")))
(wrap-program (car (find-files lib "^firefox$")) (wrap-program (car (find-files lib "^firefox$"))