libretro.desmume: move to retroarch/cores

This commit is contained in:
Thiago Kenji Okada 2024-11-19 13:22:08 +00:00
parent 3f0e78e5b8
commit 2c54c27cbe
2 changed files with 41 additions and 11 deletions

View File

@ -129,17 +129,7 @@ lib.makeScope newScope (self: rec {
citra = self.callPackage ./cores/citra.nix { };
desmume = mkLibretroCore {
core = "desmume";
preBuild = "cd desmume/src/frontend/libretro";
extraBuildInputs = [ libpcap libGLU libGL xorg.libX11 ];
makeFlags = lib.optional stdenv.hostPlatform.isAarch32 "platform=armv-unix"
++ lib.optional (!stdenv.hostPlatform.isx86) "DESMUME_JIT=0";
meta = {
description = "Port of DeSmuME to libretro";
license = lib.licenses.gpl2Plus;
};
};
desmume = self.callPackage ./cores/desmume.nix { };
desmume2015 = mkLibretroCore {
core = "desmume2015";

View File

@ -0,0 +1,40 @@
{
lib,
stdenv,
fetchFromGitHub,
mkLibretroCore,
libpcap,
libGLU,
libGL,
xorg,
}:
mkLibretroCore {
core = "desmume";
version = "unstable-2024-10-21";
src = fetchFromGitHub {
owner = "libretro";
repo = "desmume";
rev = "7f05a8d447b00acd9e0798aee97b4f72eb505ef9";
hash = "sha256-BttWMunVbfPOTGx+DV+3QyOwW+55tgXKVIn99DZhbBI=";
};
extraBuildInputs = [
libpcap
libGLU
libGL
xorg.libX11
];
makeFlags =
lib.optional stdenv.hostPlatform.isAarch32 "platform=armv-unix"
++ lib.optional (!stdenv.hostPlatform.isx86) "DESMUME_JIT=0";
preBuild = "cd desmume/src/frontend/libretro";
meta = {
description = "Port of DeSmuME to libretro";
homepage = "https://github.com/libretro/desmume";
license = lib.licenses.gpl2Plus;
};
}