9 stdenv.mkDerivation rec {
14 url = "https://sourceforge.net/projects/dgen/files/dgen/${version}/${pname}-${version}.tar.gz";
15 hash = "sha256-meLAYBfCKHPHf4gYbrzAmGckTrbgQsdjuwlLArje9h4=";
24 (lib.enableFeature (!stdenv.hostPlatform.isDarwin) "sdltest")
28 "--enable-pico" # experimental
30 "--with-cyclone=no" # Needs ASM support
32 "--with-drz80=no" # Needs ASM support
36 "--with-star=no" # Needs ASM support
39 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-reserved-user-defined-literal";
42 homepage = "https://dgen.sourceforge.net/";
43 description = "Sega Genesis/Mega Drive emulator";
45 DGen/SDL is a free, open source emulator for Sega Genesis/Mega Drive
46 systems. DGen was originally written by Dave, then ported to SDL by Joe
47 Groff and Phil K. Hornung in 1998.
51 - Game Genie/Hex codes support
52 - PAL/NTSC, fullscreen modes
53 - Joypad/joystick support
55 - Highly configurable controls
56 - OpenGL textured video output
57 - Portable (64‐bit, endian safe), runs in Windows using MinGW
58 - Screenshots, demos recording and playback
59 - Musashi (generic) and StarScream (x86‐only) CPU cores
60 - Cyclone 68000 and DrZ80 (both ARM‐only) CPU cores
61 - CZ80 (generic) and MZ80 (generic and x86‐only versions)
62 - 16‐bit, 8000 to 48000Hz sound output
63 - Support for 8, 15, 16, 24 and 32 bpp modes
64 - Archived/compressed ROMs support
65 - M68K debugger (contributed by Edd Barrett)
67 - hqx and scale2x upscaling filters
70 license = licenses.mit;
71 maintainers = with maintainers; [ AndersonTorres ];
72 platforms = with platforms; unix;
75 # TODO: implement configure options