diff --git a/pkgs/applications/blockchains/nano-wallet/default.nix b/pkgs/applications/blockchains/nano-wallet/default.nix index aa5222a50e7e..0dc6db9e5d7f 100644 --- a/pkgs/applications/blockchains/nano-wallet/default.nix +++ b/pkgs/applications/blockchains/nano-wallet/default.nix @@ -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 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}";