7c7639a888
svn path=/nixpkgs/trunk/; revision=11030
39 lines
1.2 KiB
Nix
39 lines
1.2 KiB
Nix
{ stdenv, fetchurl, libX11, libXext, libXi, libXmu
|
|
, SDL, SDL_mixer, GStreamer
|
|
, libogg, libxml2, libjpeg, mesa, libpng
|
|
, boost, freetype, agg, dbus, curl, pkgconfig
|
|
, glib, gtk
|
|
, lib}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
name = "gnash-0.8.2";
|
|
|
|
builder = ./builder.sh;
|
|
src = fetchurl {
|
|
url = "mirror://gnu/gnash/0.8.2/${name}.tar.bz2";
|
|
sha256 = "1akbs0wkgiawrjwwgp5w0cqn0qn3fcnfv40scjlrvdqrcqgfg0ac";
|
|
};
|
|
|
|
patchPhase = ''
|
|
# Add all libs to `macros/libslist', a list of library search paths.
|
|
for lib in ${lib.concatStringsSep " "
|
|
(map (lib: "\"${lib}\"/lib")
|
|
(buildInputs ++ [stdenv.glibc]))}
|
|
do
|
|
echo -n "$lib " >> macros/libslist
|
|
done
|
|
'';
|
|
|
|
# XXX: KDE is supported as well so we could make it available optionally.
|
|
buildInputs = [libX11 libXext libXi libXmu SDL SDL_mixer GStreamer
|
|
libogg libxml2 libjpeg mesa libpng boost freetype agg
|
|
dbus curl pkgconfig glib gtk];
|
|
inherit SDL_mixer SDL;
|
|
|
|
meta = {
|
|
homepage = http://www.gnu.org/software/gnash/;
|
|
description = ''Gnash is the GNU Flash movie player.'';
|
|
license = "GPLv3+";
|
|
};
|
|
} // {mozillaPlugin = "/plugins";}
|