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