aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/misc/emulators/retroarch/cores.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/misc/emulators/retroarch/cores.nix')
-rw-r--r--nixpkgs/pkgs/misc/emulators/retroarch/cores.nix23
1 files changed, 21 insertions, 2 deletions
diff --git a/nixpkgs/pkgs/misc/emulators/retroarch/cores.nix b/nixpkgs/pkgs/misc/emulators/retroarch/cores.nix
index 0ebd2b82a9a..17b1679ed5b 100644
--- a/nixpkgs/pkgs/misc/emulators/retroarch/cores.nix
+++ b/nixpkgs/pkgs/misc/emulators/retroarch/cores.nix
@@ -1,6 +1,6 @@
{ stdenv, fetchgit, fetchFromGitHub, fetchFromGitLab, cmake, pkgconfig, makeWrapper, python27, python37, retroarch
, alsaLib, fluidsynth, curl, hidapi, libGLU, gettext, glib, gtk2, portaudio, SDL, SDL_net, SDL2, SDL2_image, libGL
-, ffmpeg, pcre, libevdev, libpng, libjpeg, libzip, udev, libvorbis, snappy, which, hexdump
+, ffmpeg_3, pcre, libevdev, libpng, libjpeg, libzip, udev, libvorbis, snappy, which, hexdump
, miniupnpc, sfml, xorg, zlib, nasm, libpcap, boost, icu, openssl
, buildPackages }:
@@ -718,6 +718,25 @@ in with stdenv.lib.licenses;
preBuild = "cd libretro";
};
+ np2kai = mkLibRetroCore rec {
+ core = "np2kai";
+ src = fetchFromGitHub rec {
+ owner = "AZO234";
+ repo = "NP2kai";
+ rev = "4a317747724669343e4c33ebdd34783fb7043221";
+ sha256 = "0kxysxhx6jyk82mx30ni0ydzmwdcbnlxlnarrlq018rsnwb4md72";
+ };
+ description = "Neko Project II kai libretro port";
+ license = mit;
+ makefile = "Makefile.libretro";
+ preBuild = ''
+ cd sdl2
+ substituteInPlace ${makefile} \
+ --replace 'GIT_VERSION :=' 'GIT_VERSION ?='
+ export GIT_VERSION=${builtins.substring 0 7 src.rev}
+ '';
+ };
+
o2em = mkLibRetroCore rec {
core = "o2em";
src = fetchRetro {
@@ -815,7 +834,7 @@ in with stdenv.lib.licenses;
description = "ppsspp libretro port";
license = gpl2;
extraNativeBuildInputs = [ cmake pkgconfig ];
- extraBuildInputs = [ libGLU libGL libzip ffmpeg python37 snappy xorg.libX11 ];
+ extraBuildInputs = [ libGLU libGL libzip ffmpeg_3 python37 snappy xorg.libX11 ];
makefile = "Makefile";
cmakeFlags = [ "-DLIBRETRO=ON -DUSE_SYSTEM_FFMPEG=ON -DUSE_SYSTEM_SNAPPY=ON -DUSE_SYSTEM_LIBZIP=ON -DOpenGL_GL_PREFERENCE=GLVND" ];
postBuild = "mv lib/ppsspp_libretro${stdenv.hostPlatform.extensions.sharedLibrary} ppsspp_libretro${stdenv.hostPlatform.extensions.sharedLibrary}";