aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/misc/emulators/mednafen/default.nix
diff options
context:
space:
mode:
authorMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
committerMx Kookie <kookie@spacekookie.de>2020-10-31 19:35:09 +0100
commitc4625b175f8200f643fd6e11010932ea44c78433 (patch)
treebce3f89888c8ac3991fa5569a878a9eab6801ccc /infra/libkookie/nixpkgs/pkgs/misc/emulators/mednafen/default.nix
parent49f735974dd103039ddc4cb576bb76555164a9e7 (diff)
parentd661aa56a8843e991261510c1bb28fdc2f6975ae (diff)
Add 'infra/libkookie/' from commit 'd661aa56a8843e991261510c1bb28fdc2f6975ae'
git-subtree-dir: infra/libkookie git-subtree-mainline: 49f735974dd103039ddc4cb576bb76555164a9e7 git-subtree-split: d661aa56a8843e991261510c1bb28fdc2f6975ae
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/misc/emulators/mednafen/default.nix')
-rw-r--r--infra/libkookie/nixpkgs/pkgs/misc/emulators/mednafen/default.nix74
1 files changed, 74 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/misc/emulators/mednafen/default.nix b/infra/libkookie/nixpkgs/pkgs/misc/emulators/mednafen/default.nix
new file mode 100644
index 000000000000..e356e636c5a2
--- /dev/null
+++ b/infra/libkookie/nixpkgs/pkgs/misc/emulators/mednafen/default.nix
@@ -0,0 +1,74 @@
+{ stdenv, fetchurl, pkgconfig, freeglut, libGLU, libGL, libcdio, libjack2
+, libsamplerate, libsndfile, libX11, SDL2, SDL2_net, zlib, alsaLib }:
+
+stdenv.mkDerivation rec {
+ pname = "mednafen";
+ version = "1.24.3";
+
+ src = fetchurl {
+ url = "https://mednafen.github.io/releases/files/${pname}-${version}.tar.xz";
+ sha256 = "03zplcfvmnnv7grhacmr1zy789pb2wda36wylmzmar23g0zqbsix";
+ };
+
+ nativeBuildInputs = [ pkgconfig ];
+
+ buildInputs = [
+ freeglut
+ libGLU libGL
+ libcdio
+ libjack2
+ alsaLib
+ libsamplerate
+ libsndfile
+ libX11
+ SDL2
+ SDL2_net
+ zlib
+ ];
+
+ hardeningDisable = [ "pic" ];
+
+ postInstall = ''
+ mkdir -p $out/share/doc
+ mv Documentation $out/share/doc/mednafen
+ '';
+
+ meta = with stdenv.lib; {
+ description = "A portable, CLI-driven, SDL+OpenGL-based, multi-system emulator";
+ 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/";
+ license = licenses.gpl2;
+ maintainers = with maintainers; [ AndersonTorres ];
+ platforms = platforms.linux;
+ };
+}