lol
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge pull request #141296 from vs49688/rpcs3

rpcs3: 0.0.16-12235-a4f4b81e6 -> 0.0.19-12975-37383f421

authored by

Aaron Andersen and committed by
GitHub
16697754 0c5d86b1

+75 -14
+1
pkgs/development/libraries/wolfssl/default.nix
··· 20 20 "--enable-all" 21 21 "--enable-base64encode" 22 22 "--enable-pkcs11" 23 + "--enable-writedup" 23 24 "--enable-reproducible-build" 24 25 "--enable-tls13" 25 26 ];
+18 -14
pkgs/misc/emulators/rpcs3/default.nix
··· 1 - { mkDerivation, lib, fetchFromGitHub, cmake, pkg-config, git 2 - , qtbase, qtquickcontrols, openal, glew, vulkan-headers, vulkan-loader, libpng 3 - , ffmpeg, libevdev, libusb1, zlib, curl, python3 1 + { gcc11Stdenv, lib, fetchFromGitHub, wrapQtAppsHook, cmake, pkg-config, git 2 + , qtbase, qtquickcontrols, qtmultimedia, openal, glew, vulkan-headers, vulkan-loader, libpng 3 + , ffmpeg, libevdev, libusb1, zlib, curl, wolfssl, python3, pugixml, faudio, flatbuffers 4 4 , sdl2Support ? true, SDL2 5 5 , pulseaudioSupport ? true, libpulseaudio 6 6 , waylandSupport ? true, wayland ··· 8 8 }: 9 9 10 10 let 11 - majorVersion = "0.0.16"; 12 - gitVersion = "12235-a4f4b81e6"; # echo $(git rev-list HEAD --count)-$(git rev-parse --short HEAD) 11 + majorVersion = "0.0.19"; 12 + gitVersion = "12975-37383f421"; 13 13 in 14 - mkDerivation { 14 + gcc11Stdenv.mkDerivation { 15 15 pname = "rpcs3"; 16 16 version = "${majorVersion}-${gitVersion}"; 17 17 18 18 src = fetchFromGitHub { 19 19 owner = "RPCS3"; 20 20 repo = "rpcs3"; 21 - rev = "a4f4b81e6b0c00f4c30f9f5f182e5fe56f9fb03c"; 21 + rev = "37383f4217e1c510a543e100d0ca495800b3361a"; 22 22 fetchSubmodules = true; 23 - sha256 = "1d70nljl1kmpbk50jpjki7dglw1bbxd7x4qzg6nz5np2sdsbpckd"; 23 + sha256 = "1pm1r4j4cdcmr8xmslyv2n6iwcjldnr396by4r6lgf4mdlnwahhm"; 24 24 }; 25 25 26 + passthru.updateScript = ./update.sh; 27 + 26 28 preConfigure = '' 27 29 cat > ./rpcs3/git-version.h <<EOF 28 30 #define RPCS3_GIT_VERSION "${gitVersion}" ··· 38 40 "-DUSE_SYSTEM_LIBPNG=ON" 39 41 "-DUSE_SYSTEM_FFMPEG=ON" 40 42 "-DUSE_SYSTEM_CURL=ON" 41 - # NB: Can't use this yet, our CMake doesn't include FindWolfSSL.cmake 42 - #"-DUSE_SYSTEM_WOLFSSL=ON" 43 + "-DUSE_SYSTEM_WOLFSSL=ON" 44 + "-DUSE_SYSTEM_FAUDIO=ON" 45 + "-DUSE_SYSTEM_PUGIXML=ON" 46 + "-DUSE_SYSTEM_FLATBUFFERS=ON" 43 47 "-DUSE_NATIVE_INSTRUCTIONS=OFF" 44 48 ]; 45 49 46 - nativeBuildInputs = [ cmake pkg-config git ]; 50 + nativeBuildInputs = [ cmake pkg-config git wrapQtAppsHook ]; 47 51 48 52 buildInputs = [ 49 - qtbase qtquickcontrols openal glew vulkan-headers vulkan-loader libpng ffmpeg 50 - libevdev zlib libusb1 curl python3 53 + qtbase qtquickcontrols qtmultimedia openal glew vulkan-headers vulkan-loader libpng ffmpeg 54 + libevdev zlib libusb1 curl wolfssl python3 pugixml faudio flatbuffers 51 55 ] ++ lib.optional sdl2Support SDL2 52 56 ++ lib.optional pulseaudioSupport libpulseaudio 53 57 ++ lib.optional alsaSupport alsa-lib ··· 56 60 meta = with lib; { 57 61 description = "PS3 emulator/debugger"; 58 62 homepage = "https://rpcs3.net/"; 59 - maintainers = with maintainers; [ abbradar neonfuz ilian ]; 63 + maintainers = with maintainers; [ abbradar neonfuz ilian zane ]; 60 64 license = licenses.gpl2Only; 61 65 platforms = [ "x86_64-linux" ]; 62 66 };
+56
pkgs/misc/emulators/rpcs3/update.sh
··· 1 + #!/usr/bin/env nix-shell 2 + #!nix-shell -i bash -p gnused jq nix-prefetch-git curl 3 + 4 + set -eou pipefail 5 + 6 + ROOT="$(dirname "$(readlink -f "$0")")" 7 + if [[ ! "$(basename $ROOT)" == "rpcs3" || ! -f "$ROOT/default.nix" ]]; then 8 + echo "ERROR: Not in the rpcs3 folder" 9 + exit 1 10 + fi 11 + 12 + if [[ ! -v GITHUB_TOKEN ]]; then 13 + echo "ERROR: \$GITHUB_TOKEN not set" 14 + exit 1 15 + fi 16 + 17 + PAYLOAD=$(jq -cn --rawfile query /dev/stdin '{"query": $query}' <<EOF | curl -s -H "Authorization: bearer $GITHUB_TOKEN" -d '@-' https://api.github.com/graphql 18 + { 19 + repository(owner: "RPCS3", name: "rpcs3") { 20 + branch: ref(qualifiedName: "refs/heads/master") { 21 + target { 22 + oid 23 + ... on Commit { 24 + history { 25 + totalCount 26 + } 27 + } 28 + } 29 + } 30 + 31 + tag: refs(refPrefix: "refs/tags/", first: 1, orderBy: {field: TAG_COMMIT_DATE, direction: DESC}) { 32 + nodes { 33 + name 34 + } 35 + } 36 + } 37 + } 38 + EOF 39 + ) 40 + RPCS3_COMMIT=$(jq -r .data.repository.branch.target.oid <<< "$PAYLOAD") 41 + RPCS3_MAJORVER=$(jq -r .data.repository.tag.nodes[0].name <<< "$PAYLOAD" | sed 's/^v//g') 42 + RPCS3_COUNT=$(jq -r .data.repository.branch.target.history.totalCount <<< "$PAYLOAD") 43 + 44 + RPCS3_GITVER="$RPCS3_COUNT-${RPCS3_COMMIT::9}" 45 + echo "INFO: Latest commit is $RPCS3_COMMIT" 46 + echo "INFO: Latest version is $RPCS3_MAJORVER-$RPCS3_GITVER" 47 + 48 + RPCS3_SHA256=$(nix-prefetch-git --quiet --fetch-submodules https://github.com/RPCS3/rpcs3.git "$RPCS3_COMMIT" | jq -r .sha256) 49 + echo "INFO: SHA256 is $RPCS3_SHA256" 50 + 51 + sed -i -E \ 52 + -e "s/majorVersion\s+.+$/majorVersion = \"${RPCS3_MAJORVER}\";/g" \ 53 + -e "s/gitVersion\s+.+$/gitVersion = \"${RPCS3_GITVER}\";/g" \ 54 + -e "s/rev\s*=\s*\"[a-z0-9]+\";$/rev = \"${RPCS3_COMMIT}\";/g" \ 55 + -e "s/sha256\s*=\s*\"[a-z0-9]+\";$/sha256 = \"${RPCS3_SHA256}\";/g" \ 56 + "$ROOT/default.nix"