diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-08-11 19:47:05 +0000 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2010-08-11 19:47:05 +0000 |
commit | e897a308a65e9ad76706ecd1b41c47eee40f0060 (patch) | |
tree | 28a72e8632d5a74ca7251140b4868911a33dae3b /pkgs/misc | |
parent | c441b771f478dd0f9a7546405c96f2162abf7e41 (diff) | |
download | nixpkgs-e897a308a65e9ad76706ecd1b41c47eee40f0060.tar nixpkgs-e897a308a65e9ad76706ecd1b41c47eee40f0060.tar.gz nixpkgs-e897a308a65e9ad76706ecd1b41c47eee40f0060.tar.bz2 nixpkgs-e897a308a65e9ad76706ecd1b41c47eee40f0060.tar.lz nixpkgs-e897a308a65e9ad76706ecd1b41c47eee40f0060.tar.xz nixpkgs-e897a308a65e9ad76706ecd1b41c47eee40f0060.tar.zst nixpkgs-e897a308a65e9ad76706ecd1b41c47eee40f0060.zip |
* Added MESS, the Multi Emulator Super System.
svn path=/nixpkgs/trunk/; revision=23126
Diffstat (limited to 'pkgs/misc')
-rw-r--r-- | pkgs/misc/emulators/mess/default.nix | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/misc/emulators/mess/default.nix b/pkgs/misc/emulators/mess/default.nix new file mode 100644 index 00000000000..b3897154e9a --- /dev/null +++ b/pkgs/misc/emulators/mess/default.nix @@ -0,0 +1,48 @@ +{ 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 = + '' + ensureDir $out/bin + 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"; + }; +} |