3
0
Fork 0
forked from mirrors/nixpkgs

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:
Benno Fünfstück 2014-12-07 20:37:17 +01:00
commit 90c7b16fcf
2 changed files with 4 additions and 2 deletions

View file

@ -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
}:
@ -17,7 +17,7 @@ stdenv.mkDerivation {
categories = "Application;Network;WebBrowser;";
};
buildInputs = [makeWrapper];
buildInputs = [makeWrapper] ++ gst_plugins;
buildCommand = ''
if [ ! -x "${browser}/bin/${browserName}" ]
@ -32,6 +32,7 @@ stdenv.mkDerivation {
--suffix-each LD_LIBRARY_PATH ':' "$libs" \
--suffix-each GTK_PATH ':' "$gtk_modules" \
--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))"
mkdir -p $out/share/applications

View file

@ -11162,6 +11162,7 @@ let
);
libs = [ gstreamer gst_plugins_base ] ++ lib.optionals (cfg.enableQuakeLive or false)
(with xlibs; [ stdenv.gcc libX11 libXxf86dga libXxf86vm libXext libXt alsaLib zlib ]);
gst_plugins = [ gst_plugins_base gst_plugins_good gst_ffmpeg ];
gtk_modules = [ libcanberra ];
};