Gnash: Use gst-ffmpeg and set the right `GST_PLUGIN_PATH'.
This makes viewing YouTube videos work out-of-the-box! svn path=/nixpkgs/trunk/; revision=13256
This commit is contained in:
parent
2b9e883591
commit
9ec27e7dfd
@ -1,9 +1,9 @@
|
|||||||
{ stdenv, fetchurl
|
{ stdenv, fetchurl
|
||||||
, SDL, SDL_mixer, gstreamer, gstreamerPluginsBase
|
, SDL, SDL_mixer, gstreamer, gstPluginsBase, gstFfmpeg
|
||||||
, libogg, libxml2, libjpeg, mesa, libpng, libungif, libtool
|
, libogg, libxml2, libjpeg, mesa, libpng, libungif, libtool
|
||||||
, boost, freetype, agg, dbus, curl, pkgconfig, gettext
|
, boost, freetype, agg, dbus, curl, pkgconfig, gettext
|
||||||
, glib, gtk, x11, ming, dejagnu, python
|
, glib, gtk, x11, ming, dejagnu, python
|
||||||
, lib}:
|
, lib, makeWrapper }:
|
||||||
|
|
||||||
let version = "0.8.4"; in
|
let version = "0.8.4"; in
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -35,9 +35,10 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
# XXX: KDE is supported as well so we could make it available optionally.
|
# XXX: KDE is supported as well so we could make it available optionally.
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gettext x11 SDL SDL_mixer gstreamer gstreamerPluginsBase libtool
|
gettext x11 SDL SDL_mixer gstreamer gstPluginsBase gstFfmpeg libtool
|
||||||
libogg libxml2 libjpeg mesa libpng libungif boost freetype agg
|
libogg libxml2 libjpeg mesa libpng libungif boost freetype agg
|
||||||
dbus curl pkgconfig glib gtk
|
dbus curl pkgconfig glib gtk
|
||||||
|
makeWrapper
|
||||||
|
|
||||||
# For the test suite
|
# For the test suite
|
||||||
ming dejagnu python
|
ming dejagnu python
|
||||||
@ -51,7 +52,18 @@ stdenv.mkDerivation rec {
|
|||||||
#doCheck = true;
|
#doCheck = true;
|
||||||
|
|
||||||
preInstall = ''ensureDir $out/plugins'';
|
preInstall = ''ensureDir $out/plugins'';
|
||||||
postInstall = ''make install-plugins'';
|
postInstall = ''
|
||||||
|
make install-plugins
|
||||||
|
|
||||||
|
# Wrap programs so the find the GStreamer plug-ins they need
|
||||||
|
# (e.g., gst-ffmpeg is needed to watch movies such as YouTube's).
|
||||||
|
for prog in $out/bin/*
|
||||||
|
do
|
||||||
|
wrapProgram "$prog" --prefix \
|
||||||
|
GST_PLUGIN_PATH ":" \
|
||||||
|
"${gstPluginsBase}/lib/gstreamer-0.10:${gstFfmpeg}/lib/gstreamer-0.10"
|
||||||
|
done
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = http://www.gnu.org/software/gnash/;
|
homepage = http://www.gnu.org/software/gnash/;
|
||||||
|
@ -7287,10 +7287,9 @@ let
|
|||||||
gnash = assert mesaSupported; import ../applications/video/gnash {
|
gnash = assert mesaSupported; import ../applications/video/gnash {
|
||||||
inherit fetchurl stdenv SDL SDL_mixer libogg libxml2 libjpeg mesa libpng
|
inherit fetchurl stdenv SDL SDL_mixer libogg libxml2 libjpeg mesa libpng
|
||||||
boost freetype agg dbus curl pkgconfig x11 libtool lib libungif
|
boost freetype agg dbus curl pkgconfig x11 libtool lib libungif
|
||||||
gettext ming dejagnu python;
|
gettext makeWrapper ming dejagnu python;
|
||||||
inherit (gtkLibs) glib gtk;
|
inherit (gtkLibs) glib gtk;
|
||||||
gstreamer = gst_all.gstreamer;
|
inherit (gst_all) gstreamer gstPluginsBase gstFfmpeg;
|
||||||
gstreamerPluginsBase = gst_all.gstPluginsBase;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
gnunet = import ../applications/networking/p2p/gnunet {
|
gnunet = import ../applications/networking/p2p/gnunet {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user