{ lib , stdenv , fetchFromGitHub , wrapQtAppsHook , cmake , pkg-config , git , qtbase , qtquickcontrols , qtmultimedia , openal , glew , vulkan-headers , vulkan-loader , libpng , libSM , ffmpeg , libevdev , libusb1 , zlib , curl , wolfssl , python3 , pugixml , flatbuffers , llvm_16 , cubeb , faudioSupport ? true , faudio , SDL2 , waylandSupport ? true , wayland }: let # Keep these separate so the update script can regex them rpcs3GitVersion = "15409-fd6829f75"; rpcs3Version = "0.0.28-15409-fd6829f75"; rpcs3Revision = "fd6829f7576da07e3bb90de8821834d3ce44610c"; rpcs3Hash = "sha256-I/CYDE7te8xxKjTyH1Mb45uemya5Sfjb96MQWlkFAbk="; in stdenv.mkDerivation { pname = "rpcs3"; version = rpcs3Version; src = fetchFromGitHub { owner = "RPCS3"; repo = "rpcs3"; rev = rpcs3Revision; fetchSubmodules = true; hash = rpcs3Hash; }; passthru.updateScript = ./update.sh; preConfigure = '' cat > ./rpcs3/git-version.h <