git.iko.soy/typeable/nixpkgs
on master help sign in
pcsx2: build with gtk3 and support x86_64 builds
commitd6def694c19db93865a327f02765ed3e3bee73a1 authorSamuel Gräfenstein <git@samuelgrf.com> dateSat 10 Oct 2020, 11:59 (6 years ago) parent0d5f50e
2 files changed+18−23
pkgs/misc/emulators/pcsx2/default.nix+16−21 pkgs/top-level/all-packages.nix+2−2
pkgs/misc/emulators/pcsx2/default.nix+16−21
@@ -1,21 +1,19 @@
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
1+{ alsaLib, cmake, fetchFromGitHub, gettext, glib, gtk3, harfbuzz, libaio
2+, libpcap, libpng, libxml2, makeWrapper, perl, pkgconfig, portaudio, SDL2
3+, soundtouch, stdenv, udev, wrapGAppsHook, wxGTK, zlib
44}:
55
6−stdenv.mkDerivation rec {
6+stdenv.mkDerivation {
77 pname = "pcsx2";
8− version = "1.6.0";
8+ version = "unstable-2020-10-10";
99
1010 src = fetchFromGitHub {
1111 owner = "PCSX2";
1212 repo = "pcsx2";
13− rev = "v${version}";
14− sha256 = "0528kh3275285lvfsykycdhc35c1z8pmccl2s7dfi3va2cp4x8wa";
13+ rev = "7e2ccd64e8e6049b6059141e8767037463421c33";
14+ sha256 = "0c7m74ch68p4y9xlld34a9r38kb2py6wlkg4vranc6dicxvi1b3r";
1515 };
1616
17− postPatch = "sed '1i#include \"x86intrin.h\"' -i common/src/x86emitter/cpudetect.cpp";
18−
1917 cmakeFlags = [
2018 "-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
2119 "-DDISABLE_ADVANCE_SIMD=TRUE"
@@ -23,17 +21,14 @@ stdenv.mkDerivation rec {
2321 "-DDOC_DIR=${placeholder "out"}/share/doc/pcsx2"
2422 "-DGAMEINDEX_DIR=${placeholder "out"}/share/pcsx2"
2523 "-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"
24+ "-DGTK3_API=TRUE"
2925 "-DPACKAGE_MODE=TRUE"
3026 "-DPLUGIN_DIR=${placeholder "out"}/lib/pcsx2"
3127 "-DREBUILD_SHADER=TRUE"
28+ "-DwxWidgets_CONFIG_EXECUTABLE=${wxGTK}/bin/wx-config"
29+ "-DwxWidgets_INCLUDE_DIRS=${wxGTK}/include"
30+ "-DwxWidgets_LIBRARIES=${wxGTK}/lib"
3231 "-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"
3732 ];
3833
3934 postFixup = ''
@@ -41,13 +36,13 @@ stdenv.mkDerivation rec {
4136 --set __GL_THREADED_OPTIMIZATIONS 1
4237 '';
4338
44− nativeBuildInputs = [ cmake makeWrapper perl pkgconfig ];
39+ nativeBuildInputs = [ cmake makeWrapper perl pkgconfig wrapGAppsHook ];
4540
4641 buildInputs = [
4742 alsaLib
48− glib
4943 gettext
50− gtk2
44+ glib
45+ gtk3
5146 harfbuzz
5247 libaio
5348 libpcap
@@ -71,13 +66,13 @@ stdenv.mkDerivation rec {
7166 PC, with many additional features and benefits.
7267 '';
7368 homepage = "https://pcsx2.net";
74− maintainers = with maintainers; [ hrdinka ];
69+ maintainers = with maintainers; [ hrdinka samuelgrf ];
7570
7671 # PCSX2's source code is released under LGPLv3+. It However ships
7772 # additional data files and code that are licensed differently.
7873 # This might be solved in future, for now we should stick with
7974 # license.free
8075 license = licenses.free;
81− platforms = platforms.i686;
76+ platforms = platforms.x86;
8277 };
8378}
pkgs/top-level/all-packages.nix+2−2
@@ -22682,8 +22682,8 @@ in
2268222682 ffmpeg = ffmpeg_2;
2268322683 };
2268422684
22685− pcsx2 = pkgsi686Linux.callPackage ../misc/emulators/pcsx2 {
22686− wxGTK = pkgsi686Linux.wxGTK30;
22685+ pcsx2 = callPackage ../misc/emulators/pcsx2 {
22686+ wxGTK = wxGTK30-gtk3;
2268722687 };
2268822688
2268922689 pekwm = callPackage ../applications/window-managers/pekwm { };