mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
libretro.ppsspp: move to retroarch/cores
This commit is contained in:
parent
46ab30c61f
commit
215e0d4012
@ -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";
|
||||
|
55
pkgs/applications/emulators/retroarch/cores/ppsspp.nix
Normal file
55
pkgs/applications/emulators/retroarch/cores/ppsspp.nix
Normal 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;
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user