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