From 1995e1265e97b2668ade8716de70507b330dcc82 Mon Sep 17 00:00:00 2001 From: Armijn Hemel Date: Sun, 24 Sep 2006 12:23:13 +0000 Subject: [PATCH] add gnash, the GNU Flash Player. Might need some reworking with regard to the location of the flash plugin. Also, is probably very impure (needs testing on NixOS). svn path=/nixpkgs/trunk/; revision=6591 --- pkgs/applications/video/gnash/builder.sh | 5 +++++ pkgs/applications/video/gnash/default.nix | 17 +++++++++++++++++ pkgs/top-level/all-packages.nix | 11 +++++++++++ 3 files changed, 33 insertions(+) create mode 100644 pkgs/applications/video/gnash/builder.sh create mode 100644 pkgs/applications/video/gnash/default.nix diff --git a/pkgs/applications/video/gnash/builder.sh b/pkgs/applications/video/gnash/builder.sh new file mode 100644 index 00000000000..41e0691c480 --- /dev/null +++ b/pkgs/applications/video/gnash/builder.sh @@ -0,0 +1,5 @@ +source $stdenv/setup + +configureFlags="--with-sdl-mixer-incl=$SDL_mixer/include/SDL --with-sdl-incl=$SDL/include/SDL --with-plugindir=$out" + +genericBuild diff --git a/pkgs/applications/video/gnash/default.nix b/pkgs/applications/video/gnash/default.nix new file mode 100644 index 00000000000..8d8dfacc94f --- /dev/null +++ b/pkgs/applications/video/gnash/default.nix @@ -0,0 +1,17 @@ +{stdenv, fetchurl, libX11, libXext, libXi, libXmu +, SDL, SDL_mixer, GStreamer +, libogg, libxml2, libjpeg, mesa, libpng}: + +stdenv.mkDerivation { + name = "gnash-0.7.1"; + + builder = ./builder.sh; + src = fetchurl { + url = ftp://ftp.nluug.nl/pub/gnu/gnash/0.7.1/gnash-0.7.1.tar.bz2; + md5 = "d860981aeaac0fc941a28abc3c24223c"; + }; + + buildInputs = [libX11 libXext libXi libXmu SDL SDL_mixer GStreamer + libogg libxml2 libjpeg mesa libpng]; + inherit SDL_mixer SDL; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index bdd5926be19..37a80c08e2b 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2316,6 +2316,12 @@ rec { inherit (gnome) gtk libgtkhtml glib pango atk libart_lgpl; }; + gnash = (import ../applications/video/gnash) { + inherit fetchurl stdenv SDL SDL_mixer GStreamer + libogg libxml2 libjpeg mesa libpng; + inherit (xlibs) libX11 libXext libXi libXmu; + }; + gphoto2 = (import ../applications/misc/gphoto2) { inherit fetchurl stdenv pkgconfig libgphoto2 libexif popt; }; @@ -2325,6 +2331,11 @@ rec { inherit (gtkLibs) gtk; }; + GStreamer = (import ../applications/audio/GStreamer) { + inherit fetchurl stdenv perl bison flex pkgconfig libxml2; + inherit (gtkLibs) glib; + }; + haskellMode = (import ../applications/editors/emacs/modes/haskell) { inherit fetchurl stdenv; };