2011-06-26 00:25:50 +02:00
|
|
|
{stdenv, fetchurl, nasm, SDL, zlib, libpng, ncurses, mesa}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "zsnes-1.51";
|
2013-10-09 08:15:39 +02:00
|
|
|
|
2011-06-26 00:25:50 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = mirror://sourceforge/zsnes/zsnes151src.tar.bz2;
|
|
|
|
sha256 = "08s64qsxziv538vmfv38fg1rfrz5k95dss5zdkbfxsbjlbdxwmi8";
|
|
|
|
};
|
|
|
|
|
2013-10-09 08:15:39 +02:00
|
|
|
# copied from arch linux, fixes gcc-4.8 compatibility
|
|
|
|
patches = [ ./zsnes.patch ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
patch -p0 < ${./zsnes-1.51-libpng15.patch}
|
|
|
|
'';
|
|
|
|
|
2011-06-26 00:25:50 +02:00
|
|
|
buildInputs = [ nasm SDL zlib libpng ncurses mesa ];
|
2014-01-03 00:54:13 +01:00
|
|
|
|
2011-06-26 00:25:50 +02:00
|
|
|
preConfigure = ''
|
|
|
|
cd src
|
2014-01-03 00:54:13 +01:00
|
|
|
sed -i "/^STRIP/d" configure
|
2011-06-26 00:25:50 +02:00
|
|
|
'';
|
2013-10-09 08:15:39 +02:00
|
|
|
|
|
|
|
configureFlags = "--enable-release";
|
|
|
|
|
2011-06-26 00:25:50 +02:00
|
|
|
meta = {
|
|
|
|
description = "A Super Nintendo Entertainment System Emulator";
|
2011-07-22 21:25:31 +02:00
|
|
|
license = "GPLv2+";
|
|
|
|
maintainers = [ stdenv.lib.maintainers.sander ];
|
|
|
|
homepage = http://www.zsnes.com;
|
2011-06-26 00:25:50 +02:00
|
|
|
};
|
2014-01-03 00:54:13 +01:00
|
|
|
}
|