summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago Kenji Okada <thiagokokada@gmail.com>2021-11-27 16:05:34 -0300
committergithub-actions[bot] <github-actions[bot]@users.noreply.github.com>2021-11-28 18:46:23 +0000
commit331baaca9cff94f34b4f1d149c09c695cf0d51ed (patch)
treef5f650070a8c16c7dd30491245ee63a69ef32d5b
parentMerge pull request #147720 from NixOS/backport-146488-to-release-21.11 (diff)
downloadnixpkgs-331baaca9cff94f34b4f1d149c09c695cf0d51ed.tar.gz
libretro.pcsx2: init at unstable-2021-11-27
Thanks for @jnetod help. (cherry picked from commit 6f05bc3791cd7d27cdc376548df4ce05d9a4ce6d)
-rw-r--r--pkgs/misc/emulators/retroarch/cores.nix36
-rw-r--r--pkgs/misc/emulators/retroarch/hashes.json7
-rwxr-xr-xpkgs/misc/emulators/retroarch/update.py1
3 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/misc/emulators/retroarch/cores.nix b/pkgs/misc/emulators/retroarch/cores.nix
index c8a1b8983f32..44c43f0f3284 100644
--- a/pkgs/misc/emulators/retroarch/cores.nix
+++ b/pkgs/misc/emulators/retroarch/cores.nix
@@ -14,6 +14,7 @@
, hexdump
, hidapi
, icu
+, libaio
, libGL
, libGLU
, libevdev
@@ -21,6 +22,7 @@
, libpcap
, libpng
, libvorbis
+, libxml2
, libzip
, makeWrapper
, nasm
@@ -36,6 +38,8 @@
, udev
, which
, xorg
+, xxd
+, xz
, zlib
}:
@@ -669,6 +673,38 @@ in
'';
};
+ pcsx2 = mkLibRetroCore {
+ core = "pcsx2";
+ version = "unstable-2021-11-27";
+ description = "Port of PCSX2 to libretro";
+ license = lib.licenses.gpl3Plus;
+ extraNativeBuildInputs = [
+ cmake
+ gettext
+ pkg-config
+ ];
+ extraBuildInputs = [
+ libaio
+ libGL
+ libGLU
+ libpcap
+ libpng
+ libxml2
+ xz
+ xxd
+ ];
+ makefile = "Makefile";
+ cmakeFlags = [
+ "-DCMAKE_BUILD_TYPE=Release"
+ "-DLIBRETRO=ON"
+ ];
+ postPatch = ''
+ # remove ccache
+ substituteInPlace CMakeLists.txt --replace "ccache" ""
+ '';
+ postBuild = "cd /build/source/build/pcsx2";
+ };
+
pcsx_rearmed = mkLibRetroCore {
core = "pcsx_rearmed";
description = "Port of PCSX ReARMed with GNU lightning to libretro";
diff --git a/pkgs/misc/emulators/retroarch/hashes.json b/pkgs/misc/emulators/retroarch/hashes.json
index 9eab19b29ad1..3caf4ed9f7b8 100644
--- a/pkgs/misc/emulators/retroarch/hashes.json
+++ b/pkgs/misc/emulators/retroarch/hashes.json
@@ -377,6 +377,13 @@
"sha256": "rms+T8JOp/TJ/T5a5uLj8lu1LLz/GAsJZ7UbK42C9yU=",
"fetchSubmodules": false
},
+ "pcsx2": {
+ "owner": "libretro",
+ "repo": "pcsx2",
+ "rev": "18e0685ed4f191796c8e923caf4f5e96a930057e",
+ "sha256": "V2eS741us2p+JC+ghmHjAtFeptB0UcBlwZuisZ8Co7M=",
+ "fetchSubmodules": false
+ },
"pcsx_rearmed": {
"owner": "libretro",
"repo": "pcsx_rearmed",
diff --git a/pkgs/misc/emulators/retroarch/update.py b/pkgs/misc/emulators/retroarch/update.py
index 3c1ea2b755b1..831709d89e7c 100755
--- a/pkgs/misc/emulators/retroarch/update.py
+++ b/pkgs/misc/emulators/retroarch/update.py
@@ -64,6 +64,7 @@ CORES = {
"o2em": {"repo": "libretro-o2em"},
"opera": {"repo": "opera-libretro"},
"parallel-n64": {"repo": "parallel-n64"},
+ "pcsx2": {"repo": "pcsx2"},
"pcsx_rearmed": {"repo": "pcsx_rearmed"},
"picodrive": {"repo": "picodrive", "fetch_submodules": True},
"play": {"repo": "Play-", "owner": "jpd002", "fetch_submodules": True},