From 32d3b843073eaab0f8c9a30f862c5550b219213c Mon Sep 17 00:00:00 2001 From: Frido Friedemann Date: Sat, 21 May 2022 19:11:35 +0200 Subject: [PATCH] libbitcoin: fix gcc11 compilation by patch --- .../misc/libbitcoin/fix-gcc11-compilation.patch | 12 ++++++++++++ pkgs/tools/misc/libbitcoin/libbitcoin.nix | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 pkgs/tools/misc/libbitcoin/fix-gcc11-compilation.patch diff --git a/pkgs/tools/misc/libbitcoin/fix-gcc11-compilation.patch b/pkgs/tools/misc/libbitcoin/fix-gcc11-compilation.patch new file mode 100644 index 000000000000..fe1b9777275e --- /dev/null +++ b/pkgs/tools/misc/libbitcoin/fix-gcc11-compilation.patch @@ -0,0 +1,12 @@ +diff --git a/include/bitcoin/bitcoin/wallet/dictionary.hpp b/include/bitcoin/bitcoin/wallet/dictionary.hpp +index 632f1afc..63a51764 100644 +--- a/include/bitcoin/bitcoin/wallet/dictionary.hpp ++++ b/include/bitcoin/bitcoin/wallet/dictionary.hpp +@@ -19,6 +19,7 @@ + #ifndef LIBBITCOIN_WALLET_DICTIONARY_HPP + #define LIBBITCOIN_WALLET_DICTIONARY_HPP + ++#include + #include + #include + #include diff --git a/pkgs/tools/misc/libbitcoin/libbitcoin.nix b/pkgs/tools/misc/libbitcoin/libbitcoin.nix index 65bd52a03029..88f9a81561b7 100644 --- a/pkgs/tools/misc/libbitcoin/libbitcoin.nix +++ b/pkgs/tools/misc/libbitcoin/libbitcoin.nix @@ -21,6 +21,8 @@ in stdenv.mkDerivation { enableParallelBuilding = true; + patches = [ ./fix-gcc11-compilation.patch ]; + configureFlags = [ "--with-tests=no" "--with-boost=${boost.dev}"