rippled: fix `gcc-13` build failure

Without the change the build fails on `master` as
https://hydra.nixos.org/build/246448950:

In file included from /build/rippled/src/test/basics/base64_test.cpp:29,
from /build/rippled/build/CMakeFiles/rippled.dir/Unity/unity_23_cxx.cxx:4:
/build/rippled/src/ripple/basics/base64.h:65:20: error: 'uint8_t' is not a member of 'std'; did you mean 'wint_t'?
65 | base64_encode(std::uint8_t const* data, std::size_t len);
| ^~~~~~~
| wint_t

+12 -1
+12 -1
pkgs/servers/rippled/default.nix
··· 1 - { lib, stdenv, fetchgit, fetchurl, git, cmake, pkg-config 2 , openssl, boost, grpc, protobuf, libnsl, rocksdb_6_23, snappy }: 3 4 let ··· 99 fetchSubmodules = true; 100 hash = "sha256-VW/VmnhtF2xyHfEud3D6b3n8uTE0a/nDW1GISs5QfwM="; 101 }; 102 103 hardeningDisable = ["format"]; 104 cmakeFlags = ["-Dstatic=OFF" "-DBoost_NO_BOOST_CMAKE=ON" "-DSNAPPY_INCLUDE_DIR=${snappy}/include" ];
··· 1 + { lib, stdenv, fetchgit, fetchurl, fetchpatch, git, cmake, pkg-config 2 , openssl, boost, grpc, protobuf, libnsl, rocksdb_6_23, snappy }: 3 4 let ··· 99 fetchSubmodules = true; 100 hash = "sha256-VW/VmnhtF2xyHfEud3D6b3n8uTE0a/nDW1GISs5QfwM="; 101 }; 102 + 103 + patches = [ 104 + # Fix gcc-13 build due to missing <cstdint> includes: 105 + # https://github.com/XRPLF/rippled/pull/4555 106 + (fetchpatch { 107 + name = "gcc-13.patch"; 108 + url = "https://github.com/XRPLF/rippled/commit/c9a586c2437bc8ffd22e946c82e1cbe906e1fc40.patch"; 109 + hash = "sha256-+4BDTMFoQWUHljgwGB1gtczVPQH/U5MA0ojbnBykceg="; 110 + excludes = [ "src/ripple/basics/StringUtilities.h" ]; 111 + }) 112 + ]; 113 114 hardeningDisable = ["format"]; 115 cmakeFlags = ["-Dstatic=OFF" "-DBoost_NO_BOOST_CMAKE=ON" "-DSNAPPY_INCLUDE_DIR=${snappy}/include" ];