From 813002b411344a99fea41b37512e90966830c331 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Tue, 19 Nov 2024 12:49:33 +0000 Subject: [PATCH] libretro.bsnes-mercury{,-balanced,-performance}: move to retroarch/cores --- .../emulators/retroarch/cores.nix | 33 ++----------------- .../retroarch/cores/bsnes-mercury.nix | 26 +++++++++++++++ 2 files changed, 29 insertions(+), 30 deletions(-) create mode 100644 pkgs/applications/emulators/retroarch/cores/bsnes-mercury.nix diff --git a/pkgs/applications/emulators/retroarch/cores.nix b/pkgs/applications/emulators/retroarch/cores.nix index da3df1e4b4dd..e4f4232cfcb6 100644 --- a/pkgs/applications/emulators/retroarch/cores.nix +++ b/pkgs/applications/emulators/retroarch/cores.nix @@ -121,38 +121,11 @@ lib.makeScope newScope (self: rec { bsnes-hd = self.callPackage ./cores/bsnes-hd.nix { }; - bsnes-mercury = mkLibretroCore { - core = "bsnes-mercury-accuracy"; - repo = "bsnes-mercury"; - makefile = "Makefile"; - makeFlags = [ "PROFILE=accuracy" ]; - meta = { - description = "Fork of bsnes with HLE DSP emulation restored (accuracy profile)"; - license = lib.licenses.gpl3Only; - }; - }; + bsnes-mercury = self.callPackage ./cores/bsnes-mercury.nix { }; - bsnes-mercury-balanced = mkLibretroCore { - core = "bsnes-mercury-balanced"; - repo = "bsnes-mercury"; - makefile = "Makefile"; - makeFlags = [ "PROFILE=balanced" ]; - meta = { - description = "Fork of bsnes with HLE DSP emulation restored (balanced profile)"; - license = lib.licenses.gpl3Only; - }; - }; + bsnes-mercury-balanced = self.bsnes-mercury.override { withProfile = "balanced"; }; - bsnes-mercury-performance = mkLibretroCore { - core = "bsnes-mercury-performance"; - repo = "bsnes-mercury"; - makefile = "Makefile"; - makeFlags = [ "PROFILE=performance" ]; - meta = { - description = "Fork of bsnes with HLE DSP emulation restored (performance profile)"; - license = lib.licenses.gpl3Only; - }; - }; + bsnes-mercury-performance = self.bsnes-mercury.override { withProfile = "performance"; }; citra = mkLibretroCore rec { core = "citra"; diff --git a/pkgs/applications/emulators/retroarch/cores/bsnes-mercury.nix b/pkgs/applications/emulators/retroarch/cores/bsnes-mercury.nix new file mode 100644 index 000000000000..f86a355a7c69 --- /dev/null +++ b/pkgs/applications/emulators/retroarch/cores/bsnes-mercury.nix @@ -0,0 +1,26 @@ +{ + lib, + fetchFromGitHub, + mkLibretroCore, + withProfile ? "accuracy", +}: +mkLibretroCore { + core = "bsnes-mercury-${withProfile}"; + version = "unstable-2024-10-21"; + + src = fetchFromGitHub { + owner = "libretro"; + repo = "bsnes-mercury"; + rev = "0f35d044bf2f2b879018a0500e676447e93a1db1"; + hash = "sha256-skVREKYITZn+gKKSZmwuBCWrG0jb/pifwIgat8VyQ8U="; + }; + + makefile = "Makefile"; + makeFlags = [ "PROFILE=${withProfile}" ]; + + meta = { + description = "Fork of bsnes with HLE DSP emulation restored (${withProfile} profile)"; + homepage = "https://github.com/libretro/bsnes-mercury"; + license = lib.licenses.gpl3Only; + }; +}