2019-12-19 11:24:02 +00:00
|
|
|
{ SDL2
|
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
2020-06-07 13:39:09 +01:00
|
|
|
, ffmpeg_3
|
2019-12-19 11:24:02 +00:00
|
|
|
, glew
|
|
|
|
, lib
|
|
|
|
, libzip
|
|
|
|
, mkDerivation
|
|
|
|
, pkgconfig
|
|
|
|
, python3
|
|
|
|
, qtbase
|
|
|
|
, qtmultimedia
|
|
|
|
, snappy
|
|
|
|
, zlib
|
|
|
|
}:
|
2017-09-27 15:33:00 +01:00
|
|
|
|
2019-11-13 20:38:29 +00:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ppsspp";
|
2020-04-07 12:12:51 +01:00
|
|
|
version = "1.9.4";
|
2014-05-27 04:22:24 +01:00
|
|
|
|
2017-09-27 15:33:00 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hrydgard";
|
|
|
|
repo = "ppsspp";
|
|
|
|
rev = "v${version}";
|
2014-05-27 04:22:24 +01:00
|
|
|
fetchSubmodules = true;
|
2020-04-07 12:12:51 +01:00
|
|
|
sha256 = "0ivi0dcfxwa4nz19amki80qacnjhqr42f0ihyby1scxafl3nq55c";
|
2014-05-27 04:22:24 +01:00
|
|
|
};
|
|
|
|
|
2019-12-19 11:24:02 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace git-version.cmake \
|
|
|
|
--replace unknown ${src.rev}
|
|
|
|
substituteInPlace UI/NativeApp.cpp \
|
|
|
|
--replace /usr/share $out/share
|
2017-09-27 15:33:00 +01:00
|
|
|
'';
|
2014-05-27 04:22:24 +01:00
|
|
|
|
2019-12-19 11:24:02 +00:00
|
|
|
nativeBuildInputs = [ cmake pkgconfig python3 ];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
SDL2
|
2020-06-07 13:39:09 +01:00
|
|
|
ffmpeg_3
|
2019-12-19 11:24:02 +00:00
|
|
|
glew
|
|
|
|
libzip
|
|
|
|
qtbase
|
|
|
|
qtmultimedia
|
|
|
|
snappy
|
|
|
|
zlib
|
|
|
|
];
|
2016-12-17 04:58:57 +00:00
|
|
|
|
2019-12-19 11:24:02 +00:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DOpenGL_GL_PREFERENCE=GLVND"
|
|
|
|
"-DUSE_SYSTEM_FFMPEG=ON"
|
|
|
|
"-DUSE_SYSTEM_LIBZIP=ON"
|
|
|
|
"-DUSE_SYSTEM_SNAPPY=ON"
|
|
|
|
"-DUSING_QT_UI=ON"
|
|
|
|
];
|
2016-07-17 15:42:46 +01:00
|
|
|
|
2017-09-27 15:33:00 +01:00
|
|
|
installPhase = ''
|
2019-12-19 11:24:02 +00:00
|
|
|
mkdir -p $out/share/ppsspp
|
|
|
|
install -Dm555 PPSSPPQt $out/bin/ppsspp
|
2017-09-27 15:33:00 +01:00
|
|
|
mv assets $out/share/ppsspp
|
|
|
|
'';
|
2014-05-27 04:22:24 +01:00
|
|
|
|
2019-12-19 11:24:02 +00:00
|
|
|
meta = with lib; {
|
2017-09-27 15:33:00 +01:00
|
|
|
description = "A PSP emulator for Android, Windows, Mac and Linux, written in C++";
|
2019-12-19 11:24:02 +00:00
|
|
|
homepage = "https://www.ppsspp.org/";
|
2014-05-27 04:22:24 +01:00
|
|
|
license = licenses.gpl2Plus;
|
2019-12-05 07:29:48 +00:00
|
|
|
maintainers = with maintainers; [ AndersonTorres ];
|
2014-05-27 04:22:24 +01:00
|
|
|
};
|
2015-07-29 13:51:15 +01:00
|
|
|
}
|