aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/misc/emulators/retroarch
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/misc/emulators/retroarch')
-rw-r--r--nixpkgs/pkgs/misc/emulators/retroarch/cores.nix23
-rw-r--r--nixpkgs/pkgs/misc/emulators/retroarch/default.nix7
2 files changed, 23 insertions, 7 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}";
diff --git a/nixpkgs/pkgs/misc/emulators/retroarch/default.nix b/nixpkgs/pkgs/misc/emulators/retroarch/default.nix
index 28a641ec970..bfc2c338769 100644
--- a/nixpkgs/pkgs/misc/emulators/retroarch/default.nix
+++ b/nixpkgs/pkgs/misc/emulators/retroarch/default.nix
@@ -1,5 +1,5 @@
{ stdenv, fetchFromGitHub, which, pkgconfig, makeWrapper
-, ffmpeg, libGLU, libGL, freetype, libxml2, python3
+, ffmpeg_3, libGLU, libGL, freetype, libxml2, python3
, libobjc, AppKit, Foundation
, alsaLib ? null
, libdrm ? null
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig wayland ]
++ optional withVulkan makeWrapper;
- buildInputs = [ ffmpeg freetype libxml2 libGLU libGL python3 SDL2 which ]
+ buildInputs = [ ffmpeg_3 freetype libxml2 libGLU libGL python3 SDL2 which ]
++ optional enableNvidiaCgToolkit nvidia_cg_toolkit
++ optional withVulkan vulkan-loader
++ optionals stdenv.isDarwin [ libobjc AppKit Foundation ]
@@ -43,9 +43,6 @@ stdenv.mkDerivation rec {
libXdmcp libXext libXxf86vm mesa udev
wayland libxkbcommon ];
- # we use prefix-less pkg-config
- PKG_CONF_PATH = "pkg-config";
-
enableParallelBuilding = true;
configureFlags = stdenv.lib.optionals stdenv.isLinux [ "--enable-kms" "--enable-egl" ];