From d97af23faf770b01744f150dc1e418521c761665 Mon Sep 17 00:00:00 2001 From: Zhu Zihao Date: Mon, 29 Mar 2021 23:55:17 +0800 Subject: nongnu: firefox: Enable the integration with native notifications. * nongnu/packages/mozilla.scm (firefox)[input]: Add libnotify. [arguments]: Add libnotify to LD_LIBRARY_PATH in 'wrap-program'. (firefox-wayland): Dito. Signed-off-by: Jonathan Brielmaier --- nongnu/packages/mozilla.scm | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'nongnu/packages/mozilla.scm') diff --git a/nongnu/packages/mozilla.scm b/nongnu/packages/mozilla.scm index 117a2e2..0ce17ee 100644 --- a/nongnu/packages/mozilla.scm +++ b/nongnu/packages/mozilla.scm @@ -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$")) -- cgit v1.2.3