diff options
author | Vladimír Čunát <vcunat@gmail.com> | 2016-09-18 23:19:51 +0200 |
---|---|---|
committer | Vladimír Čunát <vcunat@gmail.com> | 2016-09-18 23:23:13 +0200 |
commit | f27a970f2d7231243eeeedbf1f6ad7c4fe56258b (patch) | |
tree | 2f0c332fb2da928b9516ac25465ff5b3c82583a8 /pkgs/applications | |
parent | 6286f7723300ec919a25182bbade1ce1bfd39944 (diff) | |
download | nixlib-f27a970f2d7231243eeeedbf1f6ad7c4fe56258b.tar nixlib-f27a970f2d7231243eeeedbf1f6ad7c4fe56258b.tar.gz nixlib-f27a970f2d7231243eeeedbf1f6ad7c4fe56258b.tar.bz2 nixlib-f27a970f2d7231243eeeedbf1f6ad7c4fe56258b.tar.lz nixlib-f27a970f2d7231243eeeedbf1f6ad7c4fe56258b.tar.xz nixlib-f27a970f2d7231243eeeedbf1f6ad7c4fe56258b.tar.zst nixlib-f27a970f2d7231243eeeedbf1f6ad7c4fe56258b.zip |
firefox*: fix notifications
Fixes #18712. Now firefox uses the notification daemon, if available. Unfortunately, the same approach didn't work for thunderbird; I don't know why.
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/networking/browsers/firefox/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/networking/browsers/firefox/default.nix b/pkgs/applications/networking/browsers/firefox/default.nix index cd6cbf667f13..5df2387ec7f1 100644 --- a/pkgs/applications/networking/browsers/firefox/default.nix +++ b/pkgs/applications/networking/browsers/firefox/default.nix @@ -113,6 +113,14 @@ common = { pname, version, sha512 }: stdenv.mkDerivation rec { "$out/bin/firefox" --version ''; + postFixup = + # Fix notifications. LibXUL uses dlopen for this, unfortunately; see #18712. + '' + patchelf --set-rpath "${lib.getLib libnotify + }/lib:$(patchelf --print-rpath "$out"/lib/firefox-*/libxul.so)" \ + "$out"/lib/firefox-*/libxul.so + ''; + meta = { description = "A web browser" + lib.optionalString (pname == "firefox-esr") " (Extended Support Release)"; homepage = http://www.mozilla.com/en-US/firefox/; |