1{ stdenv, fetchurl, libSM, libX11, libICE, SDL, alsaLib, gcc-unwrapped, libXext }:
2
3with stdenv.lib;
4stdenv.mkDerivation rec{
5 name = "atari++-${version}";
6 version = "1.81";
7
8 src = fetchurl {
9 url = "http://www.xl-project.com/download/atari++_${version}.tar.gz";
10 sha256 = "1sv268dsjddirhx47zaqgqiahy6zjxj7xaiiksd1gjvs4lvf3cdg";
11 };
12
13 buildInputs = [ libSM libX11 SDL libICE alsaLib gcc-unwrapped libXext ];
14
15 postFixup = ''
16 patchelf --set-rpath ${stdenv.lib.makeLibraryPath buildInputs} "$out/bin/atari++"
17 '';
18
19 meta = {
20 homepage = http://www.xl-project.com/;
21 description = "An enhanced, cycle-accurated Atari emulator";
22 longDescription = ''
23 The Atari++ Emulator is a Unix based emulator of the Atari eight
24 bit computers, namely the Atari 400 and 800, the Atari 400XL,
25 800XL and 130XE, and the Atari 5200 game console. The emulator
26 is auto-configurable and will compile on a variety of systems
27 (Linux, Solaris, Irix).
28 '';
29 maintainers = [ maintainers.AndersonTorres ];
30 license = licenses.gpl2Plus;
31 platforms = stdenv.lib.platforms.linux;
32 };
33}