2018-02-24 14:12:44 +01:00
|
|
|
{ stdenv, fetchurl, unzip, pkgconfig, SDL, gtk2, GConf, libGLU_combined
|
2010-08-11 21:47:05 +02:00
|
|
|
, expat, zlib }:
|
|
|
|
|
|
|
|
let
|
|
|
|
|
|
|
|
version = "139";
|
|
|
|
|
|
|
|
mameSrc = fetchurl {
|
2017-03-08 15:13:49 +01:00
|
|
|
url = "https://github.com/mamedev/mame/releases/download/mame0139/mame0${version}s.zip";
|
2010-08-11 21:47:05 +02:00
|
|
|
sha256 = "1mpkwxfz38cgxzvlni2y3fxas3b8qmnzj2ik2zzbd8mr622jdp79";
|
|
|
|
};
|
2017-03-08 15:13:49 +01:00
|
|
|
|
2010-08-11 21:47:05 +02:00
|
|
|
messSrc = fetchurl {
|
2017-03-08 15:13:49 +01:00
|
|
|
url = "http://www.progettosnaps.net/MESS/src/mess0${version}s.zip";
|
2010-08-11 21:47:05 +02:00
|
|
|
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 =
|
2018-02-24 14:12:44 +01:00
|
|
|
[ unzip pkgconfig SDL gtk2 GConf libGLU_combined expat zlib ];
|
2010-08-11 21:47:05 +02:00
|
|
|
|
|
|
|
installPhase =
|
|
|
|
''
|
2012-01-18 21:16:00 +01:00
|
|
|
mkdir -p $out/bin
|
2010-08-11 21:47:05 +02:00
|
|
|
cp mess* $out/bin/mess
|
|
|
|
'';
|
2017-03-08 15:13:49 +01:00
|
|
|
|
2010-08-11 21:47:05 +02:00
|
|
|
meta = {
|
|
|
|
homepage = http://www.mess.org/;
|
|
|
|
license = "non-commercial";
|
|
|
|
description = "Multi Emulator Super System, an emulator of many game consoles and computer systems";
|
2017-03-08 15:13:49 +01:00
|
|
|
broken = true;
|
2010-08-11 21:47:05 +02:00
|
|
|
};
|
|
|
|
}
|