nano-wallet: fix gcc-13 build failure

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

    In file included from /build/source/submodules/rocksdb/table/block_based/data_block_hash_index.cc:9:
    /build/source/submodules/rocksdb/table/block_based/data_block_hash_index.h:65:7: error: 'uint8_t' does not name a type
       65 | const uint8_t kNoEntry = 255;
          |       ^~~~~~~
This commit is contained in:
Sergei Trofimovich 2024-02-19 22:15:49 +00:00
parent 6021282979
commit 2c63059067

View File

@ -1,4 +1,6 @@
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config, wrapQtAppsHook, boost, libGL
{ lib, stdenv, fetchFromGitHub
, fetchpatch
, cmake, pkg-config, wrapQtAppsHook, boost, libGL
, qtbase, python3 }:
stdenv.mkDerivation rec {
@ -14,6 +16,17 @@ stdenv.mkDerivation rec {
hash = "sha256-YvYEXHC8kxviZLQwINs+pS61wITSfqfrrPmlR+zNRoE=";
};
patches = [
# Fix gcc-13 build failure due to missing <cstdint> includes.
(fetchpatch {
name = "gcc-13.patch";
url = "https://github.com/facebook/rocksdb/commit/88edfbfb5e1cac228f7cc31fbec24bb637fe54b1.patch";
stripLen = 1;
extraPrefix = "submodules/rocksdb/";
hash = "sha256-HhlIYyPzIZFuyzHTUPz3bXgXiaFSQ8pVrLLMzegjTgE=";
})
];
cmakeFlags = let
options = {
PYTHON_EXECUTABLE = "${python3.interpreter}";