@@ -1,5 +1,5 @@
11{ pname, version, src, branchName
2−, stdenv, lib, fetchFromGitHub, fetchpatch, wrapQtAppsHook
2+, stdenv, lib, wrapQtAppsHook
33, cmake, pkg-config
44, libpulseaudio, libjack2, alsa-lib, sndio
55, vulkan-loader, vulkan-headers
@@ -9,7 +9,7 @@
99, glslang
1010, boost173
1111, catch2
12−, fmt
12+, fmt_8
1313, SDL2
1414, udev
1515, libusb1
@@ -29,20 +29,13 @@ stdenv.mkDerivation rec {
2929 glslang
3030 boost173
3131 catch2
32− fmt
32+ fmt_8
3333 SDL2
3434 udev
3535 libusb1
3636 ffmpeg
3737 ];
3838
39− patches = [
40− (fetchpatch { # Without this, yuzu tries to read version info from .git which is not present.
41− url = "https://raw.githubusercontent.com/pineappleEA/Pineapple-Linux/28cbf656e3188b80eda0031d0b2713708ecd630f/inject-git-info.patch";
42− sha256 = "1zxh5fwdr7jl0aagb3yfwd0995vyyk54f0f748f7c4rqvg6867fd";
43− })
44− ];
45−
4639 cmakeFlags = [
4740 "-DYUZU_USE_BUNDLED_QT=OFF"
4841 "-DYUZU_USE_BUNDLED_SDL2=OFF"
@@ -50,19 +43,20 @@ stdenv.mkDerivation rec {
5043 "-DENABLE_QT_TRANSLATION=ON"
5144 "-DYUZU_USE_QT_WEB_ENGINE=ON"
5245 "-DUSE_DISCORD_PRESENCE=ON"
53− # Shows errors about not being able to find .git at runtime if you do not set these
54− "-DGIT_BRANCH=\"\""
55− "-DGIT_DESC=\"\""
5646 ];
5747
48+ # This changes `ir/opt` to `ir/var/empty` in `externals/dynarmic/src/dynarmic/CMakeLists.txt`
49+ # making the build fail, as that path does not exist
50+ dontFixCmake = true;
51+
5852 preConfigure = ''
5953 # Trick the configure system. This prevents a check for submodule directories.
6054 rm -f .gitmodules
6155
6256 # see https://github.com/NixOS/nixpkgs/issues/114044, setting this through cmakeFlags does not work.
6357 cmakeFlagsArray+=(
64− "-DTITLE_BAR_FORMAT_IDLE=\"yuzu ${branchName} ${version}\""
65− "-DTITLE_BAR_FORMAT_RUNNING=\"yuzu ${branchName} ${version} \| \{3\}\""
58+ "-DTITLE_BAR_FORMAT_IDLE=yuzu ${branchName} ${version}"
59+ "-DTITLE_BAR_FORMAT_RUNNING=yuzu ${branchName} ${version} | {3}"
6660 )
6761 '';
6862
@@ -87,5 +81,6 @@ stdenv.mkDerivation rec {
8781 ];
8882 maintainers = with maintainers; [ ivar joshuafern ];
8983 platforms = platforms.linux;
84+ broken = stdenv.isAarch64; # Currently aarch64 is not supported.
9085 };
9186}