Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

pcsx2: 1.4.0 -> unstable-2020-01-05

+46 -36
+43 -35
pkgs/misc/emulators/pcsx2/default.nix
··· 1 - { alsaLib, cmake, fetchFromGitHub, glib, gtk2, gettext, libaio, libpng 2 - , makeWrapper, perl, pkgconfig, portaudio, SDL2, soundtouch, stdenv 3 - , wxGTK30, zlib }: 1 + { alsaLib, cmake, fetchFromGitHub, glib, gettext, gtk2, harfbuzz, lib, libaio 2 + , libpng, libpcap, libxml2, makeWrapper, perl, pkgconfig, portaudio 3 + , SDL2, soundtouch, stdenv, udev, wxGTK, zlib 4 + }: 4 5 5 6 stdenv.mkDerivation rec { 6 7 pname = "pcsx2"; 7 - version = "1.4.0"; 8 + version = "unstable-2020-01-05"; 8 9 9 10 src = fetchFromGitHub { 10 11 owner = "PCSX2"; 11 12 repo = "pcsx2"; 12 - rev = "v${version}"; 13 - sha256 = "0s7mxq2cgzwjfsq0vhpz6ljk7wr725nxg48128iyirf85585l691"; 13 + rev = "9c12937351c51b921e1f28d44b019bc52e747c51"; 14 + sha256 = "0y1f5v99a6njmf6hyvl4z5xnrm7351rkyw2fn4f09hqn92r7zmi5"; 14 15 }; 15 16 16 17 postPatch = "sed '1i#include \"x86intrin.h\"' -i common/src/x86emitter/cpudetect.cpp"; 17 18 18 - configurePhase = '' 19 - mkdir -p build 20 - cd build 21 - 22 - cmake \ 23 - -DBIN_DIR="$out/bin" \ 24 - -DCMAKE_BUILD_PO=TRUE \ 25 - -DCMAKE_BUILD_TYPE=Release \ 26 - -DCMAKE_INSTALL_PREFIX="$out" \ 27 - -DDISABLE_ADVANCE_SIMD=TRUE \ 28 - -DDISABLE_PCSX2_WRAPPER=TRUE \ 29 - -DDOC_DIR="$out/share/doc/pcsx2" \ 30 - -DGAMEINDEX_DIR="$out/share/pcsx2" \ 31 - -DGLSL_SHADER_DIR="$out/share/pcsx2" \ 32 - -DGTK2_GLIBCONFIG_INCLUDE_DIR='${glib.out}/lib/glib-2.0/include' \ 33 - -DGTK2_GDKCONFIG_INCLUDE_DIR='${gtk2.out}/lib/gtk-2.0/include' \ 34 - -DGTK2_INCLUDE_DIRS='${gtk2.dev}/include/gtk-2.0' \ 35 - -DPACKAGE_MODE=TRUE \ 36 - -DPLUGIN_DIR="$out/lib/pcsx2" \ 37 - -DREBUILD_SHADER=TRUE \ 38 - -DXDG_STD=TRUE \ 39 - .. 40 - ''; 19 + cmakeFlags = [ 20 + "-DCMAKE_INSTALL_PREFIX=${placeholder "out"}" 21 + "-DDISABLE_ADVANCE_SIMD=TRUE" 22 + "-DDISABLE_PCSX2_WRAPPER=TRUE" 23 + "-DDOC_DIR=${placeholder "out"}/share/doc/pcsx2" 24 + "-DGAMEINDEX_DIR=${placeholder "out"}/share/pcsx2" 25 + "-DGLSL_SHADER_DIR=${placeholder "out"}/share/pcsx2" 26 + "-DwxWidgets_LIBRARIES=${wxGTK}/lib" 27 + "-DwxWidgets_INCLUDE_DIRS=${wxGTK}/include" 28 + "-DwxWidgets_CONFIG_EXECUTABLE=${wxGTK}/bin/wx-config" 29 + "-DPACKAGE_MODE=TRUE" 30 + "-DPLUGIN_DIR=${placeholder "out"}/lib/pcsx2" 31 + "-DREBUILD_SHADER=TRUE" 32 + "-DXDG_STD=TRUE" 33 + "-DGTK2_GLIBCONFIG_INCLUDE_DIR=${glib.out}/lib/glib-2.0/include" 34 + "-DGTK2_GDKCONFIG_INCLUDE_DIR=${gtk2.out}/lib/gtk-2.0/include" 35 + "-DGTK2_INCLUDE_DIRS=${gtk2.dev}/include/gtk-2.0" 36 + "-DGTK3_API=FALSE" 37 + ]; 41 38 42 39 postFixup = '' 43 40 wrapProgram $out/bin/PCSX2 \ 44 41 --set __GL_THREADED_OPTIMIZATIONS 1 45 42 ''; 46 43 47 - nativeBuildInputs = [ cmake perl pkgconfig ]; 44 + nativeBuildInputs = [ cmake makeWrapper perl pkgconfig ]; 48 45 49 46 buildInputs = [ 50 - alsaLib glib gettext gtk2 libaio libpng makeWrapper portaudio SDL2 51 - soundtouch wxGTK30 zlib 47 + alsaLib 48 + glib 49 + gettext 50 + gtk2 51 + harfbuzz 52 + libaio 53 + libpcap 54 + libpng 55 + libxml2 56 + portaudio 57 + SDL2 58 + soundtouch 59 + udev 60 + wxGTK 61 + zlib 52 62 ]; 53 - 54 - enableParallelBuilding = true; 55 63 56 64 meta = with stdenv.lib; { 57 65 description = "Playstation 2 emulator"; ··· 62 70 states and PS2 system memory. This allows you to play PS2 games on your 63 71 PC, with many additional features and benefits. 64 72 ''; 65 - homepage = https://pcsx2.net; 73 + homepage = "https://pcsx2.net"; 66 74 maintainers = with maintainers; [ hrdinka ]; 67 75 68 76 # PCSX2's source code is released under LGPLv3+. It However ships
+3 -1
pkgs/top-level/all-packages.nix
··· 20674 20674 ffmpeg = ffmpeg_2; 20675 20675 }; 20676 20676 20677 - pcsx2 = pkgsi686Linux.callPackage ../misc/emulators/pcsx2 { }; 20677 + pcsx2 = pkgsi686Linux.callPackage ../misc/emulators/pcsx2 { 20678 + wxGTK = pkgsi686Linux.wxGTK30; 20679 + }; 20678 20680 20679 20681 pekwm = callPackage ../applications/window-managers/pekwm { }; 20680 20682