diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2024-04-21 00:08:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-21 00:08:52 +0200 |
commit | 3d3bf4d32ba72041530254d6b21f0a9807168526 (patch) | |
tree | b0ea071871368a7179b289d2ee677a75a9b50892 /pkgs/applications | |
parent | e73004a744e8e8244d2e31c10931aad9610ec5d7 (diff) | |
parent | bd75a7b3cb2651b8aceb6ee9479808ec29d301d6 (diff) |
Merge pull request #304942 from atorres1985-contrib/mednafen
Mednafen refactors
Diffstat (limited to 'pkgs/applications')
-rw-r--r-- | pkgs/applications/emulators/mednafen/default.nix | 99 | ||||
-rw-r--r-- | pkgs/applications/emulators/mednafen/server.nix | 22 | ||||
-rw-r--r-- | pkgs/applications/emulators/mednaffe/default.nix | 42 |
3 files changed, 0 insertions, 163 deletions
diff --git a/pkgs/applications/emulators/mednafen/default.nix b/pkgs/applications/emulators/mednafen/default.nix deleted file mode 100644 index 816b6c1bd4d7c..0000000000000 --- a/pkgs/applications/emulators/mednafen/default.nix +++ /dev/null @@ -1,99 +0,0 @@ -{ lib -, stdenv -, fetchurl -, SDL2 -, SDL2_net -, alsa-lib -, flac -, freeglut -, libGL -, libGLU -, libX11 -, libcdio -, libjack2 -, libsamplerate -, libsndfile -, pkg-config -, zlib -, libiconv -}: - -stdenv.mkDerivation rec { - pname = "mednafen"; - version = "1.29.0"; - - src = fetchurl { - url = "https://mednafen.github.io/releases/files/${pname}-${version}.tar.xz"; - hash = "sha256-2j+88Ch3+b4PAov6XRy1npU6QEm5D+fjk4ijOG2fNi4="; - }; - - nativeBuildInputs = [ pkg-config ]; - - buildInputs = [ - SDL2 - SDL2_net - flac - freeglut - libcdio - libjack2 - libsamplerate - libsndfile - zlib - ] ++ lib.optionals stdenv.hostPlatform.isLinux [ - alsa-lib - libGL - libGLU - libX11 - ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ - libiconv - ]; - - hardeningDisable = [ "pic" "format" ]; - - enableParallelBuilding = true; - - postInstall = '' - mkdir -p $out/share/doc - mv Documentation $out/share/doc/mednafen - ''; - - meta = with lib; { - homepage = "https://mednafen.github.io/"; - 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 - ''; - license = licenses.gpl2Plus; - maintainers = with maintainers; [ AndersonTorres ]; - platforms = platforms.unix; - mainProgram = "mednafen"; - }; -} diff --git a/pkgs/applications/emulators/mednafen/server.nix b/pkgs/applications/emulators/mednafen/server.nix deleted file mode 100644 index 3e11ff41d48d5..0000000000000 --- a/pkgs/applications/emulators/mednafen/server.nix +++ /dev/null @@ -1,22 +0,0 @@ -{ lib, stdenv, fetchurl }: - -stdenv.mkDerivation rec { - pname = "mednafen-server"; - version = "0.5.2"; - - src = fetchurl { - url = "https://mednafen.github.io/releases/files/mednafen-server-${version}.tar.xz"; - sha256 = "0xm7dj5nwnrsv69r72rcnlw03jm0l8rmrg3s05gjfvxyqmlb36dq"; - }; - - postInstall = "install -m 644 -Dt $out/share/mednafen-server standard.conf"; - - meta = with lib; { - description = "Netplay server for Mednafen"; - mainProgram = "mednafen-server"; - homepage = "https://mednafen.github.io/"; - license = licenses.gpl2; - maintainers = with maintainers; [ AndersonTorres ]; - platforms = platforms.unix; - }; -} diff --git a/pkgs/applications/emulators/mednaffe/default.nix b/pkgs/applications/emulators/mednaffe/default.nix deleted file mode 100644 index 75a25a4bec3b0..0000000000000 --- a/pkgs/applications/emulators/mednaffe/default.nix +++ /dev/null @@ -1,42 +0,0 @@ -{ stdenv -, lib -, fetchFromGitHub -, autoreconfHook -, pkg-config -, mednafen -, gtk3 -, wrapGAppsHook -}: - -stdenv.mkDerivation rec { - pname = "mednaffe"; - version = "0.9.2"; - - src = fetchFromGitHub { - owner = "AmatCoder"; - repo = "mednaffe"; - rev = version; - sha256 = "sha256-zvSAt6CMcgdoPpTTA5sPlQaWUw9LUMsR2Xg9jM2UaWY="; - }; - - nativeBuildInputs = [ autoreconfHook pkg-config wrapGAppsHook ]; - - buildInputs = [ gtk3 mednafen ]; - - enableParallelBuilding = true; - - preFixup = '' - gappsWrapperArgs+=( - --prefix PATH ':' "${mednafen}/bin" - ) - ''; - - meta = with lib; { - description = "GTK-based frontend for mednafen emulator"; - mainProgram = "mednaffe"; - homepage = "https://github.com/AmatCoder/mednaffe"; - license = licenses.gpl3Plus; - maintainers = with maintainers; [ sheenobu yana AndersonTorres ]; - platforms = platforms.unix; - }; -} |