Skip to content

Commit

Permalink
libretro.mupen64plus: add patches for GCC14 (#368796)
Browse files Browse the repository at this point in the history
  • Loading branch information
thiagokokada authored Dec 28, 2024
2 parents 711b3e5 + c4c8794 commit 6205910
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions pkgs/applications/emulators/libretro/cores/mupen64plus.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
fetchpatch2,
libGL,
libGLU,
libpng,
Expand All @@ -20,6 +21,26 @@ mkLibretroCore {
hash = "sha256-nII/PMYo2xLznmAcKs6jDWGRS1DC3tiDeT6KJKRnaCI=";
};

# Fix for GCC 14
# https://github.com/libretro/mupen64plus-libretro-nx/pull/526
patches = [
(fetchpatch2 {
name = "minizip-avoid_trying_to_compile_problematic_code.patch";
url = "https://github.com/libretro/mupen64plus-libretro-nx/commit/2b05477dd9cd99e7f9425f58cb544f454fc0d813.patch?full_index=1";
hash = "sha256-Q0yymeS6taeFRt6BH6IX5q1SDUMh2Zn3mFpdJguyk9M=";
})
(fetchpatch2 {
name = "EmuThread-align_with_co_create()_and_pthread_create().patch";
url = "https://github.com/libretro/mupen64plus-libretro-nx/commit/26dfd670ffdd5ed6a03e6704dc73f82c13d81dd9.patch?full_index=1";
hash = "sha256-BraCR/b8DTmVAWrUxiXp9nxBYvTpTW9OQAt8TP1eusI=";
})
(fetchpatch2 {
name = "Fix_compilation_of_bundled_libzlib.patch";
url = "https://github.com/libretro/mupen64plus-libretro-nx/commit/3c3e7fbc70b8f533c09c964cf468ba5e8d61351c.patch?full_index=1";
hash = "sha256-PCJLNYhhccnWLcnPaHL6tz+5qdjogJRYfzZIh3r+Vlk=";
})
];

extraBuildInputs = [
libGLU
libGL
Expand Down

0 comments on commit 6205910

Please sign in to comment.