1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/misc/emulators/pcsx2/default.nix

79 lines
2.2 KiB
Nix
Raw Normal View History

{ alsaLib, cmake, fetchFromGitHub, gettext, glib, gtk3, harfbuzz, libaio
, libpcap, libpng, libxml2, makeWrapper, perl, pkgconfig, portaudio, SDL2
, soundtouch, stdenv, udev, wrapGAppsHook, wxGTK, zlib
2020-01-08 11:32:45 +00:00
}:
2016-02-26 09:21:31 +00:00
stdenv.mkDerivation {
pname = "pcsx2";
version = "unstable-2020-10-10";
2016-02-26 09:21:31 +00:00
src = fetchFromGitHub {
owner = "PCSX2";
repo = "pcsx2";
rev = "7e2ccd64e8e6049b6059141e8767037463421c33";
sha256 = "0c7m74ch68p4y9xlld34a9r38kb2py6wlkg4vranc6dicxvi1b3r";
2016-02-26 09:21:31 +00:00
};
2020-01-08 11:32:45 +00:00
cmakeFlags = [
"-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
"-DDISABLE_ADVANCE_SIMD=TRUE"
"-DDISABLE_PCSX2_WRAPPER=TRUE"
"-DDOC_DIR=${placeholder "out"}/share/doc/pcsx2"
"-DGAMEINDEX_DIR=${placeholder "out"}/share/pcsx2"
"-DGLSL_SHADER_DIR=${placeholder "out"}/share/pcsx2"
"-DGTK3_API=TRUE"
2020-01-08 11:32:45 +00:00
"-DPACKAGE_MODE=TRUE"
"-DPLUGIN_DIR=${placeholder "out"}/lib/pcsx2"
"-DREBUILD_SHADER=TRUE"
"-DwxWidgets_CONFIG_EXECUTABLE=${wxGTK}/bin/wx-config"
"-DwxWidgets_INCLUDE_DIRS=${wxGTK}/include"
"-DwxWidgets_LIBRARIES=${wxGTK}/lib"
2020-01-08 11:32:45 +00:00
"-DXDG_STD=TRUE"
];
2016-02-26 09:21:31 +00:00
postFixup = ''
wrapProgram $out/bin/PCSX2 \
--set __GL_THREADED_OPTIMIZATIONS 1
'';
nativeBuildInputs = [ cmake makeWrapper perl pkgconfig wrapGAppsHook ];
2016-02-26 09:21:31 +00:00
buildInputs = [
2020-01-08 11:32:45 +00:00
alsaLib
gettext
glib
gtk3
2020-01-08 11:32:45 +00:00
harfbuzz
libaio
libpcap
libpng
libxml2
portaudio
SDL2
soundtouch
udev
wxGTK
zlib
2016-02-26 09:21:31 +00:00
];
meta = with stdenv.lib; {
description = "Playstation 2 emulator";
longDescription= ''
PCSX2 is an open-source PlayStation 2 (AKA PS2) emulator. Its purpose
is to emulate the PS2 hardware, using a combination of MIPS CPU
Interpreters, Recompilers and a Virtual Machine which manages hardware
states and PS2 system memory. This allows you to play PS2 games on your
PC, with many additional features and benefits.
'';
2020-01-08 11:32:45 +00:00
homepage = "https://pcsx2.net";
maintainers = with maintainers; [ hrdinka samuelgrf ];
2016-02-26 09:21:31 +00:00
# PCSX2's source code is released under LGPLv3+. It However ships
# additional data files and code that are licensed differently.
# This might be solved in future, for now we should stick with
# license.free
license = licenses.free;
platforms = platforms.x86;
2016-02-26 09:21:31 +00:00
};
}