wesnoth: backport gcc-13 fix

Without the change `wesnoth` fails to build against `gcc-13` as:

$ nix build --impure --expr 'with import <nixpkgs> {}; wesnoth.override { stdenv = gcc13Stdenv; }' -L

In file included from /build/source/src/serialization/base64.cpp:16:
/build/source/src/serialization/base64.hpp:23:49: error: 'uint8_t' was not declared in this scope
23 | using byte_string_view = std::basic_string_view<uint8_t>;
| ^~~~~~~
/build/source/src/serialization/base64.hpp:20:1: note: 'uint8_t' is defined in header '<cstdint>'; did you forget to '#include <cstdint>'?
19 | #include <vector>
+++ |+#include <cstdint>
20 |

+12 -1
+12 -1
pkgs/games/wesnoth/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, cmake, pkg-config, SDL2, SDL2_image, SDL2_mixer, SDL2_net, SDL2_ttf 2 , pango, gettext, boost, libvorbis, fribidi, dbus, libpng, pcre, openssl, icu 3 , Cocoa, Foundation 4 }: ··· 13 repo = "wesnoth"; 14 hash = "sha256-KtAPc2nsqSoHNsLTLom/yaUECn+IWBdBFpiMclrUHxM="; 15 }; 16 17 nativeBuildInputs = [ cmake pkg-config ]; 18
··· 1 + { lib, stdenv, fetchFromGitHub, fetchpatch 2 + , cmake, pkg-config, SDL2, SDL2_image, SDL2_mixer, SDL2_net, SDL2_ttf 3 , pango, gettext, boost, libvorbis, fribidi, dbus, libpng, pcre, openssl, icu 4 , Cocoa, Foundation 5 }: ··· 14 repo = "wesnoth"; 15 hash = "sha256-KtAPc2nsqSoHNsLTLom/yaUECn+IWBdBFpiMclrUHxM="; 16 }; 17 + 18 + patches = [ 19 + # Pull upstream fix https://github.com/wesnoth/wesnoth/pull/6726 20 + # for gcc-13 support. 21 + (fetchpatch { 22 + name = "gcc-134.patch"; 23 + url = "https://github.com/wesnoth/wesnoth/commit/f073493ebc279cefa391d364c48265058795e1d2.patch"; 24 + hash = "sha256-uTB65DEBZwHFRgDwNx/yVjzmnW3jRoiibadXhNcwMkI="; 25 + }) 26 + ]; 27 28 nativeBuildInputs = [ cmake pkg-config ]; 29