tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
pcsx2: unstable-2020-11-13 -> unstable-2021-10-28
Martino Fontana
4 years ago
7aa9d284
56eb515f
+4
-29
1 changed file
expand all
collapse all
unified
split
pkgs
misc
emulators
pcsx2
default.nix
+4
-29
pkgs/misc/emulators/pcsx2/default.nix
···
2
, cmake
3
, fetchFromGitHub
4
, fmt
5
-
, gcc-unwrapped
6
, gettext
7
, glib
8
, gtk3
···
13
, libpulseaudio
14
, libsamplerate
15
, libxml2
16
-
, makeWrapper
17
, perl
18
, pkg-config
19
, portaudio
···
28
29
stdenv.mkDerivation {
30
pname = "pcsx2";
31
-
version = "unstable-2020-11-13";
32
33
src = fetchFromGitHub {
34
owner = "PCSX2";
35
repo = "pcsx2";
36
fetchSubmodules = true;
37
-
rev = "319287dbe552c8405720b25dfdf5fa518deeee0b";
38
-
sha256 = "1kswc8vw9hbv2nigp8cxrgf2s0ik7p4i203cbqci8zjmnkaqpsai";
39
};
40
41
cmakeFlags = [
42
-
"-DCMAKE_INSTALL_PREFIX=${placeholder "out"}"
43
"-DDISABLE_ADVANCE_SIMD=TRUE"
44
"-DDISABLE_PCSX2_WRAPPER=TRUE"
45
-
"-DDOC_DIR=${placeholder "out"}/share/doc/pcsx2"
46
-
"-DGAMEINDEX_DIR=${placeholder "out"}/share/pcsx2"
47
-
"-DGLSL_SHADER_DIR=${placeholder "out"}/share/pcsx2"
48
-
"-DGTK3_API=TRUE"
49
"-DPACKAGE_MODE=TRUE"
50
-
"-DPLUGIN_DIR=${placeholder "out"}/lib/pcsx2"
51
-
"-DREBUILD_SHADER=TRUE"
52
-
"-DUSE_LTO=TRUE"
53
-
"-DwxWidgets_CONFIG_EXECUTABLE=${wxGTK}/bin/wx-config"
54
-
"-DwxWidgets_INCLUDE_DIRS=${wxGTK}/include"
55
-
"-DwxWidgets_LIBRARIES=${wxGTK}/lib"
56
"-DXDG_STD=TRUE"
57
];
58
59
-
postPatch = ''
60
-
substituteInPlace cmake/BuildParameters.cmake \
61
-
--replace /usr/bin/gcc-ar ${gcc-unwrapped}/bin/gcc-ar \
62
-
--replace /usr/bin/gcc-nm ${gcc-unwrapped}/bin/gcc-nm \
63
-
--replace /usr/bin/gcc-ranlib ${gcc-unwrapped}/bin/gcc-ranlib
64
-
'';
65
-
66
-
postFixup = ''
67
-
wrapProgram $out/bin/PCSX2 \
68
-
--set __GL_THREADED_OPTIMIZATIONS 1
69
-
'';
70
-
71
-
nativeBuildInputs = [ cmake makeWrapper perl pkg-config wrapGAppsHook ];
72
73
buildInputs = [
74
alsa-lib
···
2
, cmake
3
, fetchFromGitHub
4
, fmt
0
5
, gettext
6
, glib
7
, gtk3
···
12
, libpulseaudio
13
, libsamplerate
14
, libxml2
0
15
, perl
16
, pkg-config
17
, portaudio
···
26
27
stdenv.mkDerivation {
28
pname = "pcsx2";
29
+
version = "unstable-2021-10-28";
30
31
src = fetchFromGitHub {
32
owner = "PCSX2";
33
repo = "pcsx2";
34
fetchSubmodules = true;
35
+
rev = "52eab493591137d830b45337e04c75ff525a31f9";
36
+
sha256 = "RhAo5Fob8G16jzb9MOAS43vwTkFzf5XupymN0dzeGJU=";
37
};
38
39
cmakeFlags = [
0
40
"-DDISABLE_ADVANCE_SIMD=TRUE"
41
"-DDISABLE_PCSX2_WRAPPER=TRUE"
0
0
0
0
42
"-DPACKAGE_MODE=TRUE"
0
0
0
0
0
0
43
"-DXDG_STD=TRUE"
44
];
45
46
+
nativeBuildInputs = [ cmake perl pkg-config wrapGAppsHook ];
0
0
0
0
0
0
0
0
0
0
0
0
47
48
buildInputs = [
49
alsa-lib