From fbbf9ff6df94e936ca59b5998de9e273068f71c2 Mon Sep 17 00:00:00 2001 From: vitalii Date: Mon, 3 Oct 2022 19:30:21 +0300 Subject: [PATCH] libretro.puae: init at unstable-2022-04-21 --- pkgs/applications/emulators/retroarch/cores.nix | 12 ++++++++++++ pkgs/applications/emulators/retroarch/hashes.json | 6 ++++++ .../applications/emulators/retroarch/update_cores.py | 1 + 3 files changed, 19 insertions(+) diff --git a/pkgs/applications/emulators/retroarch/cores.nix b/pkgs/applications/emulators/retroarch/cores.nix index ed47c579d642..471795df77b2 100644 --- a/pkgs/applications/emulators/retroarch/cores.nix +++ b/pkgs/applications/emulators/retroarch/cores.nix @@ -40,6 +40,7 @@ , xxd , xz , zlib +, fetchpatch }: let @@ -727,6 +728,17 @@ in makefile = "Makefile"; }; + puae = mkLibRetroCore { + core = "puae"; + description = "Amiga emulator based on WinUAE"; + license = lib.licenses.gpl2Only; + makefile = "Makefile"; + patches = fetchpatch { + url = "https://github.com/libretro/libretro-uae/commit/90ba4c9bb940e566781c3590553270ad69cf212e.patch"; + sha256 = "sha256-9xkRravvyFZc0xsIj0OSm2ux5BqYogfQ1TDnH9l6jKw="; + }; + }; + quicknes = mkLibRetroCore { core = "quicknes"; description = "QuickNES libretro port"; diff --git a/pkgs/applications/emulators/retroarch/hashes.json b/pkgs/applications/emulators/retroarch/hashes.json index 41649cbf4c00..8f710087c051 100644 --- a/pkgs/applications/emulators/retroarch/hashes.json +++ b/pkgs/applications/emulators/retroarch/hashes.json @@ -376,6 +376,12 @@ "rev": "fbf62c3dacaac694f7ec26cf9be10a51b27271e7", "sha256": "Opb6CUeT/bnaTg4MJo7DNsVyaPa73PLbIor25HHWzZ0=" }, + "puae": { + "owner": "libretro", + "repo": "libretro-uae", + "rev": "1b7dd443ff89d667d99f8c44454a91ed59bcabd9", + "sha256": "YJiZEtB0rBFffEZj/hB7zEFBUp02kCzblq4CtCmygKo=" + }, "quicknes": { "owner": "libretro", "repo": "QuickNES_Core", diff --git a/pkgs/applications/emulators/retroarch/update_cores.py b/pkgs/applications/emulators/retroarch/update_cores.py index bb6fd2884a50..eb8ae705af73 100755 --- a/pkgs/applications/emulators/retroarch/update_cores.py +++ b/pkgs/applications/emulators/retroarch/update_cores.py @@ -71,6 +71,7 @@ CORES = { "ppsspp": {"repo": "ppsspp", "owner": "hrydgard", "fetch_submodules": True}, "prboom": {"repo": "libretro-prboom"}, "prosystem": {"repo": "prosystem-libretro"}, + "puae": {"repo": "libretro-uae"}, "quicknes": {"repo": "QuickNES_Core"}, "sameboy": {"repo": "sameboy"}, "scummvm": {"repo": "scummvm"},