ppsspp: ffmpeg_3 -> ffmpeg

And refactor.
This commit is contained in:
AndersonTorres 2021-04-26 21:14:04 -03:00
parent 41c71047c0
commit 5495d6d2b2

View file

@ -1,11 +1,11 @@
{ SDL2 { mkDerivation
, cmake
, fetchFromGitHub , fetchFromGitHub
, ffmpeg_3 , SDL2
, cmake
, ffmpeg
, glew , glew
, lib , lib
, libzip , libzip
, mkDerivation
, pkg-config , pkg-config
, python3 , python3
, qtbase , qtbase
@ -23,7 +23,7 @@ mkDerivation rec {
repo = pname; repo = pname;
rev = "v${version}"; rev = "v${version}";
fetchSubmodules = true; fetchSubmodules = true;
sha256 = "19948jzqpclf8zfzp3k7s580xfjgqcyfwlcp7x7xj8h8lyypzymx"; sha256 = "sha256-vfp/vacIItlPP5dR7jzDT7oOUNFnjvvdR46yi79EJKU=";
}; };
postPatch = '' postPatch = ''
@ -35,7 +35,7 @@ mkDerivation rec {
buildInputs = [ buildInputs = [
SDL2 SDL2
ffmpeg_3 ffmpeg
glew glew
libzip libzip
qtbase qtbase
@ -45,23 +45,25 @@ mkDerivation rec {
]; ];
cmakeFlags = [ cmakeFlags = [
"-DHEADLESS=OFF"
"-DOpenGL_GL_PREFERENCE=GLVND" "-DOpenGL_GL_PREFERENCE=GLVND"
"-DUSE_SYSTEM_FFMPEG=ON" "-DUSE_SYSTEM_FFMPEG=ON"
"-DUSE_SYSTEM_LIBZIP=ON" "-DUSE_SYSTEM_LIBZIP=ON"
"-DUSE_SYSTEM_SNAPPY=ON" "-DUSE_SYSTEM_SNAPPY=ON"
"-DUSING_QT_UI=ON" "-DUSING_QT_UI=ON"
"-DHEADLESS=OFF"
]; ];
installPhase = '' installPhase = ''
runHook preInstall
mkdir -p $out/share/ppsspp mkdir -p $out/share/ppsspp
install -Dm555 PPSSPPQt $out/bin/ppsspp install -Dm555 PPSSPPQt $out/bin/ppsspp
mv assets $out/share/ppsspp mv assets $out/share/ppsspp
runHook postInstall
''; '';
meta = with lib; { meta = with lib; {
description = "A HLE Playstation Portable emulator, written in C++";
homepage = "https://www.ppsspp.org/"; homepage = "https://www.ppsspp.org/";
description = "A HLE Playstation Portable emulator, written in C++";
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ AndersonTorres ]; maintainers = with maintainers; [ AndersonTorres ];
platforms = platforms.linux; platforms = platforms.linux;