nixpkgs-suyu/pkgs/applications/emulators/mednafen/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

99 lines
2.3 KiB
Nix
Raw Normal View History

2022-02-19 16:09:29 +01:00
{ lib
, stdenv
, fetchurl
, SDL2
, SDL2_net
, alsa-lib
, flac
, freeglut
, libGL
, libGLU
, libX11
, libcdio
, libjack2
, libsamplerate
, libsndfile
, pkg-config
, zlib
2022-02-22 21:18:17 +01:00
, libiconv
2022-02-19 16:09:29 +01:00
}:
stdenv.mkDerivation rec {
pname = "mednafen";
2022-02-19 16:09:29 +01:00
version = "1.29.0";
src = fetchurl {
url = "https://mednafen.github.io/releases/files/${pname}-${version}.tar.xz";
2022-02-19 16:09:29 +01:00
hash = "sha256-2j+88Ch3+b4PAov6XRy1npU6QEm5D+fjk4ijOG2fNi4=";
};
2021-01-17 03:30:45 +01:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [
2022-02-19 16:09:29 +01:00
SDL2
SDL2_net
flac
freeglut
libcdio
libjack2
libsamplerate
libsndfile
zlib
2022-02-22 21:18:17 +01:00
] ++ lib.optionals stdenv.hostPlatform.isLinux [
alsa-lib
libGL
libGLU
libX11
] ++ lib.optionals stdenv.hostPlatform.isDarwin [
libiconv
];
2022-02-22 21:18:17 +01:00
hardeningDisable = [ "pic" "format" ];
enableParallelBuilding = true;
postInstall = ''
mkdir -p $out/share/doc
mv Documentation $out/share/doc/mednafen
'';
meta = with lib; {
2022-02-19 16:09:29 +01:00
homepage = "https://mednafen.github.io/";
description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
2020-03-03 13:14:07 +01: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
'';
2022-02-19 16:09:29 +01:00
license = licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ];
2022-02-22 21:18:17 +01:00
platforms = platforms.unix;
};
}