2015-07-10 11:42:39 +01:00
|
|
|
{stdenv, fetchurl, fetchpatch, nasm, SDL, zlib, libpng, ncurses, mesa}:
|
2011-06-25 23:25:50 +01:00
|
|
|
|
|
|
|
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";
|
|
|
|
};
|
|
|
|
|
2015-07-10 11:42:39 +01:00
|
|
|
patches = [ (fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/emillon/zsnes/fc160b2538738995f600f8405d23a66b070dac02/debian/patches/0003-gcc-4.3-ftbfs.patch";
|
|
|
|
sha256 = "1rlqjxnx21iz03414bamqrpysaxbvmfacfnk111233yxjd4vhq89";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/emillon/zsnes/fc160b2538738995f600f8405d23a66b070dac02/debian/patches/0009-hat-events.patch";
|
|
|
|
sha256 = "1az5vxjff22hqlsv0nmliax3ziwcr9kc75na805v9f66s8fmj5rf";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/emillon/zsnes/fc160b2538738995f600f8405d23a66b070dac02/debian/patches/0010-Fix-build-with-libpng-1.5.patch";
|
|
|
|
sha256 = "1vjfraxjw6f496j3w8r581m3lbn16s0nx3hskzj14hl9ycfskhnr";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/emillon/zsnes/fc160b2538738995f600f8405d23a66b070dac02/debian/patches/0012-Fix-build-with-gcc-4.7.patch";
|
|
|
|
sha256 = "1d8m0vxi8wf9z4wfjx2cc48p1wy2qadgvcm88dg1jncg334jwfrg";
|
|
|
|
})
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://raw.githubusercontent.com/emillon/zsnes/fc160b2538738995f600f8405d23a66b070dac02/debian/patches/zsnes-linux-resume-freeze-fix.patch";
|
|
|
|
sha256 = "0gvf6gsqxxfah1s80ya2l5yils2kv9xa6faajdyby7xipzkc6qc7";
|
|
|
|
})
|
|
|
|
];
|
2013-10-09 07:15:39 +01:00
|
|
|
|
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
|
|
|
|
2015-07-10 11:42:39 +01:00
|
|
|
configureFlags = [ "--enable-release" ];
|
2013-10-09 07:15:39 +01:00
|
|
|
|
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
|
|
|
}
|