From b57fd97854c24f559085feda787dd1ce80c99605 Mon Sep 17 00:00:00 2001 From: Thiago Kenji Okada Date: Wed, 20 Nov 2024 15:19:23 +0000 Subject: [PATCH] libretro.yabause: move to retroarch/cores --- .../emulators/retroarch/cores.nix | 12 +------- .../emulators/retroarch/cores/yabause.nix | 28 +++++++++++++++++++ 2 files changed, 29 insertions(+), 11 deletions(-) create mode 100644 pkgs/applications/emulators/retroarch/cores/yabause.nix diff --git a/pkgs/applications/emulators/retroarch/cores.nix b/pkgs/applications/emulators/retroarch/cores.nix index 199939aa498f..ebfc283d2360 100644 --- a/pkgs/applications/emulators/retroarch/cores.nix +++ b/pkgs/applications/emulators/retroarch/cores.nix @@ -270,15 +270,5 @@ lib.makeScope newScope (self: rec { virtualjaguar = self.callPackage ./cores/virtualjaguar.nix { }; - yabause = mkLibretroCore { - core = "yabause"; - makefile = "Makefile"; - # Disable SSE for non-x86. DYNAREC doesn't build on aarch64. - makeFlags = lib.optional (!stdenv.hostPlatform.isx86) "HAVE_SSE=0"; - preBuild = "cd yabause/src/libretro"; - meta = { - description = "Port of Yabause to libretro"; - license = lib.licenses.gpl2Only; - }; - }; + yabause = self.callPackage ./cores/yabause.nix { }; }) diff --git a/pkgs/applications/emulators/retroarch/cores/yabause.nix b/pkgs/applications/emulators/retroarch/cores/yabause.nix new file mode 100644 index 000000000000..dec1fe3e89b9 --- /dev/null +++ b/pkgs/applications/emulators/retroarch/cores/yabause.nix @@ -0,0 +1,28 @@ +{ + lib, + stdenv, + fetchFromGitHub, + mkLibretroCore, +}: +mkLibretroCore { + core = "yabause"; + version = "unstable-2024-10-21"; + + src = fetchFromGitHub { + owner = "libretro"; + repo = "yabause"; + rev = "c35712c5ed33e18d77097f2059a036e19d1d66f2"; + hash = "sha256-4/gxWNPkGKBf4ti7ZF4GXgng6ZPyM9prrvK0S5tZ6V8="; + }; + + makefile = "Makefile"; + # Disable SSE for non-x86. DYNAREC doesn't build on aarch64. + makeFlags = lib.optional (!stdenv.hostPlatform.isx86) "HAVE_SSE=0"; + preBuild = "cd yabause/src/libretro"; + + meta = { + description = "Port of Yabause to libretro"; + homepage = "https://github.com/libretro/yabause"; + license = lib.licenses.gpl2Only; + }; +}