From eae83dc47221108cc8e5ad6c1221ba9ab22bad01 Mon Sep 17 00:00:00 2001 From: AndersonTorres Date: Mon, 13 Apr 2015 05:35:43 -0300 Subject: [PATCH] Atari800: 2.2.1 -> 3.1.0 --- pkgs/misc/emulators/atari800/default.nix | 36 ++++++++++++++++++------ 1 file changed, 28 insertions(+), 8 deletions(-) diff --git a/pkgs/misc/emulators/atari800/default.nix b/pkgs/misc/emulators/atari800/default.nix index c2a4c7d3d8b8..fb79b3379bdc 100644 --- a/pkgs/misc/emulators/atari800/default.nix +++ b/pkgs/misc/emulators/atari800/default.nix @@ -1,16 +1,36 @@ -{stdenv, fetchurl, unzip, zlib, SDL}: +{ stdenv, fetchurl +, unzip, zlib, SDL, readline, mesa, libX11 }: -stdenv.mkDerivation { - name = "atari800-2.2.1"; +with stdenv.lib; +stdenv.mkDerivation rec{ + name = "atari800-${version}"; + version = "3.1.0"; builder = ./builder.sh; + src = fetchurl { - url = mirror://sourceforge/atari800/atari800-2.2.1.tar.gz; - sha256 = "0gkhlb3jc0rd7fcqjm41877fsqr7als3a0n552qmnjzrlcczf5yz"; + url = "mirror://sourceforge/atari800/atari800/${version}/${name}.tar.gz"; + sha256 = "030yz5l1wyq9l0dmiimiiwpzrjr43whycd409xhhpnrdx76046wh"; }; + rom = fetchurl { - url = mirror://sourceforge/atari800/xf25.zip; + url = http://downloads.sourceforge.net/project/atari800/ROM/Original%20XL%20ROM/xf25.zip; sha256 = "12jbawxs04i0wm3910n7f3phsybdp8nndxc0xlsnzp8k0k8hmblq"; }; - buildInputs = [unzip zlib SDL]; - configureFlags = "--target=sdl"; + + buildInputs = [ unzip zlib SDL readline mesa libX11 ]; + + configureFlags = "--target=default --with-video=sdl --with-sound=sdl --with-readline --with-opengl --with-x --enable-riodevice"; + + meta = { + homepage = "http://atari800.sourceforge.net/"; + description = "An Atari 8-bit emulator"; + longDescription = '' + Atari800 is the emulator of Atari 8-bit computer systems and + 5200 game console for Unix, Linux, Amiga, MS-DOS, Atari + TT/Falcon, MS-Windows, MS WinCE, Sega Dreamcast, Android and + other systems supported by the SDL library. + ''; + maintainers = [ maintainers.AndersonTorres ]; + license = licenses.gpl2Plus; + }; }