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
This commit is contained in:
Sergei Trofimovich 2024-02-10 09:41:48 +00:00
parent 9a256494a9
commit 122fd3896c

View File

@ -1,6 +1,7 @@
{ stdenv
, lib
, fetchFromGitHub
, fetchpatch
, cmake
, libevent
, libsodium
@ -33,6 +34,15 @@ in stdenv.mkDerivation rec {
hash = "sha256-aVFLDGTbRUOw2XWDpl+ojwHBG7c0miGeoKMLwMpqVtg=";
};
patches = [
# Fix gcc-13 compatibility:
(fetchpatch {
name = "gcc-13.patch";
url = "https://github.com/oxen-io/lokinet/commit/89c5c73be48788ba14a55cb6d82d57208b487eaf.patch";
hash = "sha256-yCy4WXs6p67TMe4uPNAuQyJvtP3IbpJS81AeomNu9lU=";
})
];
nativeBuildInputs = [
cmake
pkg-config