git.iko.soy/typeable/nixpkgs
on master help sign in
firefox-wrapper: add missing gstreamer plugins

These GStreamer plugins are required for H264 <video> tag support in Firefox.

commiteffaa51680de618d656c906b33d9619c4a3166f9 authorBenno Fünfstück <benno.fuenfstueck@gmail.com> dateFri 5 Dec 2014, 13:59 (12 years ago) parentbf3fd50
2 files changed+4−1
pkgs/applications/networking/browsers/firefox/wrapper.nix+3−1 pkgs/top-level/all-packages.nix+1
pkgs/applications/networking/browsers/firefox/wrapper.nix+3−1
@@ -1,4 +1,4 @@
1−{ stdenv, lib, browser, makeDesktopItem, makeWrapper, plugins, libs, gtk_modules
1+{ stdenv, lib, browser, makeDesktopItem, makeWrapper, plugins, gst_plugins, libs, gtk_modules
22, browserName, desktopName, nameSuffix, icon
33}:
44
@@ -32,6 +32,7 @@ stdenv.mkDerivation {
3232 --suffix-each LD_LIBRARY_PATH ':' "$libs" \
3333 --suffix-each GTK_PATH ':' "$gtk_modules" \
3434 --suffix-each LD_PRELOAD ':' "$(cat $(filterExisting $(addSuffix /extra-ld-preload $plugins)))" \
35+ --suffix-each GST_PLUGIN_PATH ':' "$gst_plugins" \
3536 --prefix-contents PATH ':' "$(filterExisting $(addSuffix /extra-bin-path $plugins))"
3637
3738 mkdir -p $out/share/applications
@@ -48,6 +49,7 @@ stdenv.mkDerivation {
4849 # where to find the plugin in its tree.
4950 plugins = map (x: x + x.mozillaPlugin) plugins;
5051 libs = map (x: x + "/lib") libs ++ map (x: x + "/lib64") libs;
52+ gst_plugins = map (x: x + "/lib/gstreamer-0.10") gst_plugins;
5153 gtk_modules = map (x: x + x.gtkModule) gtk_modules;
5254
5355 meta = {
pkgs/top-level/all-packages.nix+1
@@ -11154,6 +11154,7 @@ let
1115411154 );
1115511155 libs = [ gstreamer gst_plugins_base ] ++ lib.optionals (cfg.enableQuakeLive or false)
1115611156 (with xlibs; [ stdenv.gcc libX11 libXxf86dga libXxf86vm libXext libXt alsaLib zlib ]);
11157+ gst_plugins = [ gst_plugins_base gst_plugins_good gst_ffmpeg ];
1115711158 gtk_modules = [ libcanberra ];
1115811159 };
1115911160