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