libretro.yabause: move to retroarch/cores

This commit is contained in:
Thiago Kenji Okada
2024-11-22 09:53:01 +00:00
parent a994304cda
commit b57fd97854
2 changed files with 29 additions and 11 deletions
@@ -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 { };
})
@@ -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;
};
}