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}"