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