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