lokinet: fix `gcc-13` build

Without the change build fails as
https://hydra.nixos.org/build/247545813:

In file included from /build/source/llarp/util/thread/queue_manager.cpp:1:
/build/source/llarp/util/thread/queue_manager.hpp:68:44: error: 'uint32_t' is not a member of 'std'; did you mean 'wint_t'?
68 | using AtomicIndex = std::atomic<std::uint32_t>;
| ^~~~~~~~
| wint_t

+10
+10
pkgs/applications/networking/p2p/lokinet/default.nix
··· 1 { stdenv 2 , lib 3 , fetchFromGitHub 4 , cmake 5 , libevent 6 , libsodium ··· 32 fetchSubmodules = true; 33 hash = "sha256-aVFLDGTbRUOw2XWDpl+ojwHBG7c0miGeoKMLwMpqVtg="; 34 }; 35 36 nativeBuildInputs = [ 37 cmake
··· 1 { stdenv 2 , lib 3 , fetchFromGitHub 4 + , fetchpatch 5 , cmake 6 , libevent 7 , libsodium ··· 33 fetchSubmodules = true; 34 hash = "sha256-aVFLDGTbRUOw2XWDpl+ojwHBG7c0miGeoKMLwMpqVtg="; 35 }; 36 + 37 + patches = [ 38 + # Fix gcc-13 compatibility: 39 + (fetchpatch { 40 + name = "gcc-13.patch"; 41 + url = "https://github.com/oxen-io/lokinet/commit/89c5c73be48788ba14a55cb6d82d57208b487eaf.patch"; 42 + hash = "sha256-yCy4WXs6p67TMe4uPNAuQyJvtP3IbpJS81AeomNu9lU="; 43 + }) 44 + ]; 45 46 nativeBuildInputs = [ 47 cmake