Skip to content

Commit

Permalink
Merge pull request #122140 from vs49688/rpcs3
Browse files Browse the repository at this point in the history
rpcs3: 0.0.12 -> 0.0.16
  • Loading branch information
AndersonTorres authored May 14, 2021
2 parents 2f48585 + f4b90cf commit 5d4a430
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
31 changes: 20 additions & 11 deletions pkgs/misc/emulators/rpcs3/default.nix
Original file line number Diff line number Diff line change
@@ -1,23 +1,26 @@
{ mkDerivation, lib, fetchgit, cmake, pkg-config, git
{ mkDerivation, lib, fetchFromGitHub, cmake, pkg-config, git
, qtbase, qtquickcontrols, openal, glew, vulkan-headers, vulkan-loader, libpng
, ffmpeg, libevdev, python3
, ffmpeg, libevdev, libusb1, zlib, curl, python3
, sdl2Support ? true, SDL2
, pulseaudioSupport ? true, libpulseaudio
, waylandSupport ? true, wayland
, alsaSupport ? true, alsaLib
}:

let
majorVersion = "0.0.12";
gitVersion = "10811-a86a3d2fe"; # echo $(git rev-list HEAD --count)-$(git rev-parse --short HEAD)
majorVersion = "0.0.16";
gitVersion = "12235-a4f4b81e6"; # echo $(git rev-list HEAD --count)-$(git rev-parse --short HEAD)
in
mkDerivation {
pname = "rpcs3";
version = "${majorVersion}-${gitVersion}";

src = fetchgit {
url = "https://github.com/RPCS3/rpcs3";
rev = "v${majorVersion}";
sha256 = "182rkmbnnlcfzam4bwas7lwv10vqiqvvaw3299a3hariacd7rq8x";
src = fetchFromGitHub {
owner = "RPCS3";
repo = "rpcs3";
rev = "a4f4b81e6b0c00f4c30f9f5f182e5fe56f9fb03c";
fetchSubmodules = true;
sha256 = "1d70nljl1kmpbk50jpjki7dglw1bbxd7x4qzg6nz5np2sdsbpckd";
};

preConfigure = ''
Expand All @@ -30,25 +33,31 @@ mkDerivation {
'';

cmakeFlags = [
"-DUSE_SYSTEM_ZLIB=ON"
"-DUSE_SYSTEM_LIBUSB=ON"
"-DUSE_SYSTEM_LIBPNG=ON"
"-DUSE_SYSTEM_FFMPEG=ON"
"-DUSE_SYSTEM_CURL=ON"
# NB: Can't use this yet, our CMake doesn't include FindWolfSSL.cmake
#"-DUSE_SYSTEM_WOLFSSL=ON"
"-DUSE_NATIVE_INSTRUCTIONS=OFF"
];

nativeBuildInputs = [ cmake pkg-config git ];

buildInputs = [
qtbase qtquickcontrols openal glew vulkan-headers vulkan-loader libpng ffmpeg
libevdev python3
] ++ lib.optional pulseaudioSupport libpulseaudio
libevdev zlib libusb1 curl python3
] ++ lib.optional sdl2Support SDL2
++ lib.optional pulseaudioSupport libpulseaudio
++ lib.optional alsaSupport alsaLib
++ lib.optional waylandSupport wayland;

meta = with lib; {
description = "PS3 emulator/debugger";
homepage = "https://rpcs3.net/";
maintainers = with maintainers; [ abbradar neonfuz ilian ];
license = licenses.gpl2;
license = licenses.gpl2Only;
platforms = [ "x86_64-linux" ];
};
}
2 changes: 1 addition & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -25961,7 +25961,7 @@ in

rootlesskit = callPackage ../tools/virtualization/rootlesskit {};

rpcs3 = libsForQt514.callPackage ../misc/emulators/rpcs3 { };
rpcs3 = libsForQt5.callPackage ../misc/emulators/rpcs3 { };

rsclock = callPackage ../applications/misc/rsclock { };

Expand Down

0 comments on commit 5d4a430

Please sign in to comment.