diff --git a/pkgs/applications/emulators/retroarch/cores.nix b/pkgs/applications/emulators/retroarch/cores.nix index 185187a9e3b0..c9f97b61e680 100644 --- a/pkgs/applications/emulators/retroarch/cores.nix +++ b/pkgs/applications/emulators/retroarch/cores.nix @@ -653,6 +653,11 @@ in "LLE=1" "WITH_DYNAREC=${stdenv.hostPlatform.parsed.cpu.name}" ]; + # This CXXFLAGS hack works around the GCC 13 error: + # 'uint32_t' was not declared in this scope + # It can be removed if the issue filed upstream is resolved: + # https://github.com/libretro/mupen64plus-libretro-nx/issues/515 + env.CXXFLAGS = "-include cstdint"; meta = { description = "Libretro port of Mupen64 Plus, GL only"; license = lib.licenses.gpl3Only;