2019-11-10 16:44:34 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, freeglut, libGLU, libGL, libcdio, libjack2
|
2020-04-18 19:17:00 +01:00
|
|
|
, libsamplerate, libsndfile, libX11, SDL2, SDL2_net, zlib, alsaLib }:
|
2014-05-17 04:02:22 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mednafen";
|
2020-05-06 00:46:00 +01:00
|
|
|
version = "1.24.2";
|
2014-05-17 04:02:22 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 13:41:18 +01:00
|
|
|
url = "https://mednafen.github.io/releases/files/${pname}-${version}.tar.xz";
|
2020-05-06 00:46:00 +01:00
|
|
|
sha256 = "0v3w0miyz86ihcir7ab82zjfklp550pk6g9xjxcx6mmvhp9dws8i";
|
2014-05-17 04:02:22 +01:00
|
|
|
};
|
|
|
|
|
2017-09-27 17:10:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
freeglut
|
2019-11-10 16:44:34 +00:00
|
|
|
libGLU libGL
|
2017-09-27 17:10:37 +01:00
|
|
|
libcdio
|
|
|
|
libjack2
|
2020-04-18 19:17:00 +01:00
|
|
|
alsaLib
|
2017-09-27 17:10:37 +01:00
|
|
|
libsamplerate
|
|
|
|
libsndfile
|
|
|
|
libX11
|
2020-03-03 12:14:07 +00:00
|
|
|
SDL2
|
|
|
|
SDL2_net
|
2017-09-27 17:10:37 +01:00
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
hardeningDisable = [ "pic" ];
|
2014-05-17 04:02:22 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
2017-09-27 17:10:37 +01:00
|
|
|
mkdir -p $out/share/doc
|
|
|
|
mv Documentation $out/share/doc/mednafen
|
2014-05-17 04:02:22 +01:00
|
|
|
'';
|
|
|
|
|
2014-09-10 19:59:54 +01:00
|
|
|
meta = with stdenv.lib; {
|
2014-05-17 04:02:22 +01:00
|
|
|
description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
|
2020-03-03 12:14:07 +00:00
|
|
|
longDescription = ''
|
|
|
|
Mednafen is a portable, utilizing OpenGL and SDL,
|
|
|
|
argument(command-line)-driven multi-system emulator. Mednafen has the
|
|
|
|
ability to remap hotkey functions and virtual system inputs to a keyboard,
|
|
|
|
a joystick, or both simultaneously. Save states are supported, as is
|
|
|
|
real-time game rewinding. Screen snapshots may be taken, in the PNG file
|
|
|
|
format, at the press of a button. Mednafen can record audiovisual movies
|
|
|
|
in the QuickTime file format, with several different lossless codecs
|
|
|
|
supported.
|
|
|
|
|
|
|
|
The following systems are supported (refer to the emulation module
|
|
|
|
documentation for more details):
|
|
|
|
|
|
|
|
- Apple II/II+
|
|
|
|
- Atari Lynx
|
|
|
|
- Neo Geo Pocket (Color)
|
|
|
|
- WonderSwan
|
|
|
|
- GameBoy (Color)
|
|
|
|
- GameBoy Advance
|
|
|
|
- Nintendo Entertainment System
|
|
|
|
- Super Nintendo Entertainment System/Super Famicom
|
|
|
|
- Virtual Boy
|
|
|
|
- PC Engine/TurboGrafx 16 (CD)
|
|
|
|
- SuperGrafx
|
|
|
|
- PC-FX
|
|
|
|
- Sega Game Gear
|
|
|
|
- Sega Genesis/Megadrive
|
|
|
|
- Sega Master System
|
|
|
|
- Sega Saturn (experimental, x86_64 only)
|
|
|
|
- Sony PlayStation
|
|
|
|
'';
|
|
|
|
homepage = "https://mednafen.github.io/";
|
2014-09-10 19:59:54 +01:00
|
|
|
license = licenses.gpl2;
|
2017-09-27 17:10:37 +01:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2014-09-10 19:59:54 +01:00
|
|
|
platforms = platforms.linux;
|
2014-05-17 04:02:22 +01:00
|
|
|
};
|
|
|
|
}
|