git.iko.soy/typeable/nixpkgs
on master help sign in
gnash: remove due to removal of ming
commit8608f91661f36bd4e3343309c5f6bc22ce153eef authorGraham Christensen <graham@grahamc.com> dateMon 6 Feb 2017, 21:23 (10 years ago) parent41ba205
2 files changed−127
pkgs/applications/video/gnash/default.nix−122 pkgs/top-level/all-packages.nix−5
pkgs/applications/video/gnash/default.nixdeleted−122
@@ -1,122 +0,0 @@
1−{ stdenv, fetchurl, fetchpatch
2−, SDL, SDL_mixer, gstreamer, gst_plugins_base, gst_plugins_good
3−, gst_ffmpeg, speex
4−, libogg, libxml2, libjpeg, mesa, libpng, libungif, libtool
5−, boost, freetype, agg, dbus, curl, pkgconfig, gettext
6−, glib, gtk2, gtkglext, pangox_compat, xlibsWrapper, ming, dejagnu, python, perl
7−, freefont_ttf, haxe, swftools
8−, lib, makeWrapper
9−, xulrunner }:
10−
11−assert stdenv ? glibc;
12−
13−let version = "0.8.10";
14− patch_CVE = fetchpatch {
15− url = "http://git.savannah.gnu.org/cgit/gnash.git/patch/?id=bb4dc77eecb6ed1b967e3ecbce3dac6c5e6f1527";
16− sha256 = "0ghnki5w7xf3qwfl1x6vhijpd6q608niyxrvh0g8dw5xavkvallk";
17− name = "CVE-2012-1175.patch";
18− };
19−in
20−
21−stdenv.mkDerivation rec {
22− name = "gnash-${version}";
23−
24− src = fetchurl {
25− url = "mirror://gnu/gnash/${version}/${name}.tar.bz2";
26− sha256 = "090j5lly5r6jzbnvlc3mhay6dsrd9sfrkjcgqaibm4nz8lp0f9cn";
27− };
28−
29− patchPhase = ''
30− patch -p1 < ${patch_CVE}
31−
32− # Add all libs to `macros/libslist', a list of library search paths.
33− libs=$(echo "$NIX_LDFLAGS" | tr ' ' '\n' | sed -n 's/.*-L\(.*\).*/\1/p')
34− for lib in $libs; do
35− echo -n "$lib " >> macros/libslist
36− done
37− echo -n "${stdenv.glibc.out}/lib" >> macros/libslist
38−
39− # Make sure to honor $TMPDIR, for chroot builds.
40− for file in configure gui/Makefile.in Makefile.in
41− do
42− sed -i "$file" -es'|/tmp/|$TMPDIR/|g'
43− done
44−
45− # Provide a default font.
46− sed -i "configure" \
47− -e 's|/usr/share/fonts/truetype/freefont/|${freefont_ttf}/share/fonts/truetype/|g'
48− '';
49−
50− enableParallelBuilding = true;
51−
52− # XXX: KDE is supported as well so we could make it available optionally.
53− buildInputs = [
54− gettext xlibsWrapper SDL SDL_mixer gstreamer gst_plugins_base gst_plugins_good
55− gst_ffmpeg speex libtool
56− libogg libxml2 libjpeg mesa libpng libungif boost freetype agg
57− dbus curl pkgconfig glib gtk2 gtkglext pangox_compat
58− xulrunner
59− makeWrapper
60− ]
61−
62− ++ (stdenv.lib.optionals doCheck [
63− ming dejagnu python perl haxe swftools
64− ]);
65−
66− preConfigure =
67− '' configureFlags=" \
68− --with-sdl-incl=${SDL.dev}/include/SDL \
69− --with-npapi-plugindir=$out/plugins \
70− --enable-media=gst \
71− --without-gconf
72− --enable-gui=gtk"
73−
74− # In `libmedia', Gnash compiles with "-I$gst_plugins_base/include",
75− # whereas it really needs "-I$gst_plugins_base/include/gstreamer-0.10".
76− # Work around this using GCC's $CPATH variable.
77− export CPATH="${gst_plugins_base}/include/gstreamer-0.10:${gst_plugins_good}/include/gstreamer-0.10"
78− echo "\$CPATH set to \`$CPATH'"
79−
80− echo "\$GST_PLUGIN_PATH set to \`$GST_PLUGIN_PATH'"
81− '';
82−
83− postConfigure = "echo '#define nullptr NULL' >> gnashconfig.h";
84−
85− # Make sure `gtk-gnash' gets `libXext' in its `RPATH'.
86− NIX_LDFLAGS="-lX11 -lXext";
87−
88− # XXX: Tests currently fail.
89− doCheck = false;
90−
91− preInstall = ''mkdir -p $out/plugins'';
92− postInstall = ''
93− make install-plugins
94−
95− # Wrap programs so the find the GStreamer plug-ins they need
96− # (e.g., gst-ffmpeg is needed to watch movies such as YouTube's).
97− for prog in "$out/bin/"*
98− do
99− wrapProgram "$prog" --prefix GST_PLUGIN_SYSTEM_PATH ":" "$GST_PLUGIN_SYSTEM_PATH"
100− done
101− '';
102−
103− meta = {
104− homepage = http://www.gnu.org/software/gnash/;
105− description = "A libre SWF (Flash) movie player";
106−
107− longDescription = ''
108− Gnash is a GNU Flash movie player. Flash is an animation file format
109− pioneered by Macromedia which continues to be supported by their
110− successor company, Adobe. Flash has been extended to include audio and
111− video content, and programs written in ActionScript, an
112− ECMAScript-compatible language. Gnash is based on GameSWF, and
113− supports most SWF v7 features and some SWF v8 and v9.
114− '';
115−
116− license = stdenv.lib.licenses.gpl3Plus;
117−
118− maintainers = [ ];
119− platforms = stdenv.lib.platforms.gnu;
120− broken = true;
121− };
122−} // {mozillaPlugin = "/plugins";}
pkgs/top-level/all-packages.nix−5
@@ -13526,11 +13526,6 @@ with pkgs;
1352613526
1352713527 gmu = callPackage ../applications/audio/gmu { };
1352813528
13529− gnash = callPackage ../applications/video/gnash {
13530− inherit (gnome2) gtkglext;
13531− xulrunner = firefox-unwrapped;
13532− };
13533−
1353413529 gnome_mplayer = callPackage ../applications/video/gnome-mplayer {
1353513530 inherit (gnome2) GConf;
1353613531 };