libretro.ppsspp: move to retroarch/cores

This commit is contained in:
Thiago Kenji Okada 2024-11-20 13:20:20 +00:00
parent 46ab30c61f
commit 215e0d4012
2 changed files with 56 additions and 20 deletions

View File

@ -220,26 +220,7 @@ lib.makeScope newScope (self: rec {
play = self.callPackage ./cores/play.nix { };
ppsspp = mkLibretroCore {
core = "ppsspp";
extraNativeBuildInputs = [ cmake pkg-config python3 ];
extraBuildInputs = [ libGLU libGL libzip snappy xorg.libX11 ];
makefile = "Makefile";
cmakeFlags = [
"-DLIBRETRO=ON"
# USE_SYSTEM_FFMPEG=ON causes several glitches during video playback
# See: https://github.com/NixOS/nixpkgs/issues/304616
"-DUSE_SYSTEM_FFMPEG=OFF"
"-DUSE_SYSTEM_SNAPPY=ON"
"-DUSE_SYSTEM_LIBZIP=ON"
"-DOpenGL_GL_PREFERENCE=GLVND"
];
postBuild = "cd lib";
meta = {
description = "ppsspp libretro port";
license = lib.licenses.gpl2Plus;
};
};
ppsspp = self.callPackage ./cores/ppsspp.nix { };
prboom = mkLibretroCore {
core = "prboom";

View File

@ -0,0 +1,55 @@
{
lib,
cmake,
fetchFromGitHub,
libGL,
libGLU,
libzip,
mkLibretroCore,
pkg-config,
python3,
snappy,
xorg,
}:
mkLibretroCore {
core = "ppsspp";
version = "unstable-2024-11-15";
src = fetchFromGitHub {
owner = "hrydgard";
repo = "ppsspp";
rev = "2402eea4b16908ad59079bcf3fab06ba63531a3c";
hash = "sha256-bpeiZdcXkGWLFZOsxTGuVmo4xAiUb9v5Wf6pWkt5JV0=";
fetchSubmodules = true;
};
extraNativeBuildInputs = [
cmake
pkg-config
python3
];
extraBuildInputs = [
libGLU
libGL
libzip
snappy
xorg.libX11
];
makefile = "Makefile";
cmakeFlags = [
"-DLIBRETRO=ON"
# USE_SYSTEM_FFMPEG=ON causes several glitches during video playback
# See: https://github.com/NixOS/nixpkgs/issues/304616
"-DUSE_SYSTEM_FFMPEG=OFF"
"-DUSE_SYSTEM_SNAPPY=ON"
"-DUSE_SYSTEM_LIBZIP=ON"
"-DOpenGL_GL_PREFERENCE=GLVND"
];
postBuild = "cd lib";
meta = {
description = "PPSSPP libretro port";
homepage = "https://github.com/hrydgard/ppsspp";
license = lib.licenses.gpl2Plus;
};
}