tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
pcsx2: 1.4.0 -> unstable-2020-01-05
Aaron Andersen
6 years ago
d30de788
cca0c894
+46
-36
2 changed files
expand all
collapse all
unified
split
pkgs
misc
emulators
pcsx2
default.nix
top-level
all-packages.nix
+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 }:
0
4
5
stdenv.mkDerivation rec {
6
pname = "pcsx2";
7
-
version = "1.4.0";
8
9
src = fetchFromGitHub {
10
owner = "PCSX2";
11
repo = "pcsx2";
12
-
rev = "v${version}";
13
-
sha256 = "0s7mxq2cgzwjfsq0vhpz6ljk7wr725nxg48128iyirf85585l691";
14
};
15
16
postPatch = "sed '1i#include \"x86intrin.h\"' -i common/src/x86emitter/cpudetect.cpp";
17
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
-
'';
41
42
postFixup = ''
43
wrapProgram $out/bin/PCSX2 \
44
--set __GL_THREADED_OPTIMIZATIONS 1
45
'';
46
47
-
nativeBuildInputs = [ cmake perl pkgconfig ];
48
49
buildInputs = [
50
-
alsaLib glib gettext gtk2 libaio libpng makeWrapper portaudio SDL2
51
-
soundtouch wxGTK30 zlib
0
0
0
0
0
0
0
0
0
0
0
0
0
52
];
53
-
54
-
enableParallelBuilding = true;
55
56
meta = with stdenv.lib; {
57
description = "Playstation 2 emulator";
···
62
states and PS2 system memory. This allows you to play PS2 games on your
63
PC, with many additional features and benefits.
64
'';
65
-
homepage = https://pcsx2.net;
66
maintainers = with maintainers; [ hrdinka ];
67
68
# PCSX2's source code is released under LGPLv3+. It However ships
···
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
+
}:
5
6
stdenv.mkDerivation rec {
7
pname = "pcsx2";
8
+
version = "unstable-2020-01-05";
9
10
src = fetchFromGitHub {
11
owner = "PCSX2";
12
repo = "pcsx2";
13
+
rev = "9c12937351c51b921e1f28d44b019bc52e747c51";
14
+
sha256 = "0y1f5v99a6njmf6hyvl4z5xnrm7351rkyw2fn4f09hqn92r7zmi5";
15
};
16
17
postPatch = "sed '1i#include \"x86intrin.h\"' -i common/src/x86emitter/cpudetect.cpp";
18
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
+
];
0
0
0
0
38
39
postFixup = ''
40
wrapProgram $out/bin/PCSX2 \
41
--set __GL_THREADED_OPTIMIZATIONS 1
42
'';
43
44
+
nativeBuildInputs = [ cmake makeWrapper perl pkgconfig ];
45
46
buildInputs = [
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
62
];
0
0
63
64
meta = with stdenv.lib; {
65
description = "Playstation 2 emulator";
···
70
states and PS2 system memory. This allows you to play PS2 games on your
71
PC, with many additional features and benefits.
72
'';
73
+
homepage = "https://pcsx2.net";
74
maintainers = with maintainers; [ hrdinka ];
75
76
# PCSX2's source code is released under LGPLv3+. It However ships
+3
-1
pkgs/top-level/all-packages.nix
···
20674
ffmpeg = ffmpeg_2;
20675
};
20676
20677
-
pcsx2 = pkgsi686Linux.callPackage ../misc/emulators/pcsx2 { };
0
0
20678
20679
pekwm = callPackage ../applications/window-managers/pekwm { };
20680
···
20674
ffmpeg = ffmpeg_2;
20675
};
20676
20677
+
pcsx2 = pkgsi686Linux.callPackage ../misc/emulators/pcsx2 {
20678
+
wxGTK = pkgsi686Linux.wxGTK30;
20679
+
};
20680
20681
pekwm = callPackage ../applications/window-managers/pekwm { };
20682