1{ lib, stdenv, fetchFromGitHub, autoreconfHook
2, zlib, SDL, readline, libGLU, libGL, libX11 }:
3
4with lib;
5stdenv.mkDerivation rec {
6 pname = "atari800";
7 version = "5.0.0";
8
9 src = fetchFromGitHub {
10 owner = "atari800";
11 repo = "atari800";
12 rev = "ATARI800_${replaceStrings ["."] ["_"] version}";
13 sha256 = "sha256-+eJXhqPyU0GhmzF7DbteTXzEnn5klCor9Io/UgXQfQg=";
14 };
15
16 nativeBuildInputs = [ autoreconfHook ];
17
18 buildInputs = [ zlib SDL readline libGLU libGL libX11 ];
19
20 configureFlags = [
21 "--target=default"
22 "--with-video=sdl"
23 "--with-sound=sdl"
24 "--with-readline"
25 "--with-opengl"
26 "--with-x"
27 "--enable-riodevice"
28 ];
29
30 meta = {
31 homepage = "https://atari800.github.io/";
32 description = "An Atari 8-bit emulator";
33 longDescription = ''
34 Atari800 is the emulator of Atari 8-bit computer systems and
35 5200 game console for Unix, Linux, Amiga, MS-DOS, Atari
36 TT/Falcon, MS-Windows, MS WinCE, Sega Dreamcast, Android and
37 other systems supported by the SDL library.
38 '';
39 maintainers = [ maintainers.AndersonTorres ];
40 license = licenses.gpl2Plus;
41 platforms = lib.platforms.linux;
42 };
43}