1
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs synced 2024-10-22 18:45:53 -04:00
nixpkgs/pkgs/misc/emulators/zsnes/default.nix
Mathijs Kwik ef3cc83d1e zsnes: patches for modern gcc & libpng
builds fine on stdenv-updates now
needs gcc 4.8+, so keep this commit on stdenv-updates until merge
2013-10-11 01:10:41 +02:00

32 lines
751 B
Nix

{stdenv, fetchurl, nasm, SDL, zlib, libpng, ncurses, mesa}:
stdenv.mkDerivation {
name = "zsnes-1.51";
src = fetchurl {
url = mirror://sourceforge/zsnes/zsnes151src.tar.bz2;
sha256 = "08s64qsxziv538vmfv38fg1rfrz5k95dss5zdkbfxsbjlbdxwmi8";
};
# copied from arch linux, fixes gcc-4.8 compatibility
patches = [ ./zsnes.patch ];
postPatch = ''
patch -p0 < ${./zsnes-1.51-libpng15.patch}
'';
preConfigure = ''
cd src
'';
buildInputs = [ nasm SDL zlib libpng ncurses mesa ];
configureFlags = "--enable-release";
meta = {
description = "A Super Nintendo Entertainment System Emulator";
license = "GPLv2+";
maintainers = [ stdenv.lib.maintainers.sander ];
homepage = http://www.zsnes.com;
};
}