libretro.dolphin: move to retroarch/cores

This commit is contained in:
Thiago Kenji Okada 2024-11-19 13:32:06 +00:00
parent a9249a3bea
commit 41a7b6c5a8
2 changed files with 72 additions and 28 deletions

View File

@ -133,34 +133,7 @@ lib.makeScope newScope (self: rec {
desmume2015 = self.callPackage ./cores/desmume2015.nix { };
dolphin = mkLibretroCore {
core = "dolphin";
extraNativeBuildInputs = [ cmake curl pkg-config ];
extraBuildInputs = [
libGLU
libGL
pcre
sfml
gettext
hidapi
libevdev
udev
] ++ (with xorg; [ libSM libX11 libXi libpthreadstubs libxcb xcbutil libXext libXrandr libXinerama libXxf86vm ]);
makefile = "Makefile";
cmakeFlags = [
"-DLIBRETRO=ON"
"-DLIBRETRO_STATIC=1"
"-DENABLE_QT=OFF"
"-DENABLE_LTO=OFF"
"-DUSE_UPNP=OFF"
"-DUSE_DISCORD_PRESENCE=OFF"
];
dontUseCmakeBuildDir = true;
meta = {
description = "Port of Dolphin to libretro";
license = lib.licenses.gpl2Plus;
};
};
dolphin = self.callPackage ./cores/dolphin.nix { };
dosbox = mkLibretroCore {
core = "dosbox";

View File

@ -0,0 +1,71 @@
{
lib,
fetchFromGitHub,
cmake,
curl,
gettext,
hidapi,
libGL,
libGLU,
libevdev,
mkLibretroCore,
pcre,
pkg-config,
sfml,
udev,
xorg,
}:
mkLibretroCore {
core = "dolphin";
version = "unstable-2024-04-19";
src = fetchFromGitHub {
owner = "libretro";
repo = "dolphin";
rev = "89a4df725d4eb24537728f7d655cddb1add25c18";
hash = "sha256-f9O3//EuoCSPQC7GWmf0EzAEpjoKof30kIDBCDw0dbs=";
};
extraNativeBuildInputs = [
cmake
curl
pkg-config
];
extraBuildInputs = [
gettext
hidapi
libGL
libGLU
libevdev
pcre
sfml
udev
xorg.libSM
xorg.libX11
xorg.libXext
xorg.libXi
xorg.libXinerama
xorg.libXrandr
xorg.libXxf86vm
xorg.libpthreadstubs
xorg.libxcb
xorg.xcbutil
];
makefile = "Makefile";
cmakeFlags = [
"-DLIBRETRO=ON"
"-DLIBRETRO_STATIC=1"
"-DENABLE_QT=OFF"
"-DENABLE_LTO=OFF"
"-DUSE_UPNP=OFF"
"-DUSE_DISCORD_PRESENCE=OFF"
];
dontUseCmakeBuildDir = true;
meta = {
description = "Port of Dolphin to libretro";
homepage = "https://github.com/libretro/dolphin";
license = lib.licenses.gpl2Plus;
};
}