firefox-wrapper: add gstreamer plugins for h264 video support
These plugins are required by firefox for the h264 support in HTML5 <video> tags.
This commit is contained in:
commit
90c7b16fcf
@ -1,4 +1,4 @@
|
|||||||
{ stdenv, lib, browser, makeDesktopItem, makeWrapper, plugins, libs, gtk_modules
|
{ stdenv, lib, browser, makeDesktopItem, makeWrapper, plugins, gst_plugins, libs, gtk_modules
|
||||||
, browserName, desktopName, nameSuffix, icon
|
, browserName, desktopName, nameSuffix, icon
|
||||||
}:
|
}:
|
||||||
|
|
||||||
@ -17,7 +17,7 @@ stdenv.mkDerivation {
|
|||||||
categories = "Application;Network;WebBrowser;";
|
categories = "Application;Network;WebBrowser;";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [makeWrapper];
|
buildInputs = [makeWrapper] ++ gst_plugins;
|
||||||
|
|
||||||
buildCommand = ''
|
buildCommand = ''
|
||||||
if [ ! -x "${browser}/bin/${browserName}" ]
|
if [ ! -x "${browser}/bin/${browserName}" ]
|
||||||
@ -32,6 +32,7 @@ stdenv.mkDerivation {
|
|||||||
--suffix-each LD_LIBRARY_PATH ':' "$libs" \
|
--suffix-each LD_LIBRARY_PATH ':' "$libs" \
|
||||||
--suffix-each GTK_PATH ':' "$gtk_modules" \
|
--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 GST_PLUGIN_SYSTEM_PATH : "$GST_PLUGIN_SYSTEM_PATH" \
|
||||||
--prefix-contents PATH ':' "$(filterExisting $(addSuffix /extra-bin-path $plugins))"
|
--prefix-contents PATH ':' "$(filterExisting $(addSuffix /extra-bin-path $plugins))"
|
||||||
|
|
||||||
mkdir -p $out/share/applications
|
mkdir -p $out/share/applications
|
||||||
|
@ -11162,6 +11162,7 @@ let
|
|||||||
);
|
);
|
||||||
libs = [ gstreamer gst_plugins_base ] ++ lib.optionals (cfg.enableQuakeLive or false)
|
libs = [ gstreamer gst_plugins_base ] ++ lib.optionals (cfg.enableQuakeLive or false)
|
||||||
(with xlibs; [ stdenv.gcc libX11 libXxf86dga libXxf86vm libXext libXt alsaLib zlib ]);
|
(with xlibs; [ stdenv.gcc libX11 libXxf86dga libXxf86vm libXext libXt alsaLib zlib ]);
|
||||||
|
gst_plugins = [ gst_plugins_base gst_plugins_good gst_ffmpeg ];
|
||||||
gtk_modules = [ libcanberra ];
|
gtk_modules = [ libcanberra ];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user