diff options
author | Ludovic Courtès <ludo@gnu.org> | 2008-11-12 08:37:39 +0000 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-11-12 08:37:39 +0000 |
commit | 9ec27e7dfdc8a17542b71138bce0cecb98779d64 (patch) | |
tree | 4aa4dc8e8d08ead5568d87b8921d5f83d79d03b9 /pkgs/applications/video | |
parent | 2b9e883591c3753fa73dac02938fccfdbf78edfe (diff) |
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
Diffstat (limited to 'pkgs/applications/video')
-rw-r--r-- | pkgs/applications/video/gnash/default.nix | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/pkgs/applications/video/gnash/default.nix b/pkgs/applications/video/gnash/default.nix index 30837adba84e..b0151ba4dcb6 100644 --- a/pkgs/applications/video/gnash/default.nix +++ b/pkgs/applications/video/gnash/default.nix @@ -1,9 +1,9 @@ { stdenv, fetchurl -, SDL, SDL_mixer, gstreamer, gstreamerPluginsBase +, SDL, SDL_mixer, gstreamer, gstPluginsBase, gstFfmpeg , libogg, libxml2, libjpeg, mesa, libpng, libungif, libtool , boost, freetype, agg, dbus, curl, pkgconfig, gettext , glib, gtk, x11, ming, dejagnu, python -, lib}: +, lib, makeWrapper }: let version = "0.8.4"; in stdenv.mkDerivation rec { @@ -35,9 +35,10 @@ stdenv.mkDerivation rec { # XXX: KDE is supported as well so we could make it available optionally. 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 dbus curl pkgconfig glib gtk + makeWrapper # For the test suite ming dejagnu python @@ -51,7 +52,18 @@ stdenv.mkDerivation rec { #doCheck = true; 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 = { homepage = http://www.gnu.org/software/gnash/; |