3
0
Fork 0
forked from mirrors/nixpkgs

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.
This commit is contained in:
Vladimír Čunát 2016-09-18 23:19:51 +02:00
parent 6286f77233
commit f27a970f2d

View file

@ -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/;