Merge pull request #513 from offlinehacker/firefox_libcanberra
firefoxWrapper: Add libcanberra gtk module to firefox
This commit is contained in:
commit
cef9ee5aab
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, browser, makeDesktopItem, makeWrapper, plugins, libs
|
{ stdenv, browser, makeDesktopItem, makeWrapper, plugins, libs, gtk_modules
|
||||||
, browserName, desktopName, nameSuffix, icon
|
, browserName, desktopName, nameSuffix, icon
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -28,6 +28,7 @@ stdenv.mkDerivation {
|
|||||||
"$out/bin/${browserName}${nameSuffix}" \
|
"$out/bin/${browserName}${nameSuffix}" \
|
||||||
--suffix-each MOZ_PLUGIN_PATH ':' "$plugins" \
|
--suffix-each MOZ_PLUGIN_PATH ':' "$plugins" \
|
||||||
--suffix-each LD_LIBRARY_PATH ':' "$libs" \
|
--suffix-each LD_LIBRARY_PATH ':' "$libs" \
|
||||||
|
--suffix-each GTK_PATH ':' "$gtk_modules" \
|
||||||
--suffix-each LD_PRELOAD ':' "$(cat $(filterExisting $(addSuffix /extra-ld-preload $plugins)))" \
|
--suffix-each LD_PRELOAD ':' "$(cat $(filterExisting $(addSuffix /extra-ld-preload $plugins)))" \
|
||||||
--prefix-contents PATH ':' "$(filterExisting $(addSuffix /extra-bin-path $plugins))"
|
--prefix-contents PATH ':' "$(filterExisting $(addSuffix /extra-bin-path $plugins))"
|
||||||
|
|
||||||
@ -43,6 +44,7 @@ stdenv.mkDerivation {
|
|||||||
# where to find the plugin in its tree.
|
# where to find the plugin in its tree.
|
||||||
plugins = map (x: x + x.mozillaPlugin) plugins;
|
plugins = map (x: x + x.mozillaPlugin) plugins;
|
||||||
libs = map (x: x + "/lib") libs ++ map (x: x + "/lib64") libs;
|
libs = map (x: x + "/lib") libs ++ map (x: x + "/lib64") libs;
|
||||||
|
gtk_modules = map (x: x + x.gtkModule) gtk_modules;
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description =
|
description =
|
||||||
|
@ -14,6 +14,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
configureFlags = "--disable-oss --disable-schemas-install";
|
configureFlags = "--disable-oss --disable-schemas-install";
|
||||||
|
|
||||||
|
passthru = {
|
||||||
|
gtkModule = "/lib/gtk-2.0/";
|
||||||
|
};
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "libcanberra, an implementation of the XDG Sound Theme and Name Specifications";
|
description = "libcanberra, an implementation of the XDG Sound Theme and Name Specifications";
|
||||||
|
|
||||||
|
@ -8170,6 +8170,7 @@ let
|
|||||||
if cfg.enableQuakeLive or false
|
if cfg.enableQuakeLive or false
|
||||||
then with xlibs; [ stdenv.gcc libX11 libXxf86dga libXxf86vm libXext libXt alsaLib zlib ]
|
then with xlibs; [ stdenv.gcc libX11 libXxf86dga libXxf86vm libXext libXt alsaLib zlib ]
|
||||||
else [ ];
|
else [ ];
|
||||||
|
gtk_modules = [ libcanberra ];
|
||||||
};
|
};
|
||||||
|
|
||||||
x11vnc = callPackage ../tools/X11/x11vnc { };
|
x11vnc = callPackage ../tools/X11/x11vnc { };
|
||||||
|
Loading…
Reference in New Issue
Block a user