2010-08-11 20:47:05 +01:00
|
|
|
{ stdenv, fetchurl, unzip, pkgconfig, SDL, gtkLibs, gnome, mesa
|
|
|
|
, expat, zlib }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
version = "139";
|
|
|
|
|
|
|
|
mameSrc = fetchurl {
|
|
|
|
url = "http://www.aarongiles.com/mirror/releases/mame0${version}s.zip";
|
|
|
|
sha256 = "1mpkwxfz38cgxzvlni2y3fxas3b8qmnzj2ik2zzbd8mr622jdp79";
|
|
|
|
};
|
|
|
|
|
|
|
|
messSrc = fetchurl {
|
|
|
|
url = "http://mess.redump.net/_media/downloads:mess0${version}s.zip";
|
|
|
|
name = "mess0139s.zip";
|
|
|
|
sha256 = "1v892cg6wn8cdwc8pf1gcqqdb1v1v295r6jw2hf58svwx3h27xyy";
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "mess-0.${version}";
|
|
|
|
|
|
|
|
unpackPhase =
|
|
|
|
''
|
|
|
|
unzip ${mameSrc}
|
|
|
|
# Yes, the MAME distribution is a zip file containing a zip file...
|
|
|
|
unzip mame.zip
|
|
|
|
unzip -o ${messSrc}
|
|
|
|
'';
|
|
|
|
|
|
|
|
makeFlags = "TARGET=mess BUILD_EXPAT= BUILD_ZLIB= NOWERROR=1";
|
|
|
|
|
|
|
|
buildInputs =
|
|
|
|
[ unzip pkgconfig SDL gtkLibs.gtk gnome.GConf mesa expat zlib ];
|
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2012-01-18 20:16:00 +00:00
|
|
|
mkdir -p $out/bin
|
2010-08-11 20:47:05 +01:00
|
|
|
cp mess* $out/bin/mess
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = http://www.mess.org/;
|
|
|
|
license = "non-commercial";
|
|
|
|
description = "Multi Emulator Super System, an emulator of many game consoles and computer systems";
|
|
|
|
};
|
|
|
|
}
|