Merge pull request #173915 from friedelino/fix-libbitcoin

libbitcoin: fix gcc11 compilation by patch
main
Robert Scott 2 years ago committed by GitHub
commit 902fe7c103
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 12
      pkgs/tools/misc/libbitcoin/fix-gcc11-compilation.patch
  2. 2
      pkgs/tools/misc/libbitcoin/libbitcoin.nix

@ -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 <cstddef>
#include <array>
#include <vector>
#include <bitcoin/bitcoin/compat.hpp>

@ -21,6 +21,8 @@ in stdenv.mkDerivation {
enableParallelBuilding = true;
patches = [ ./fix-gcc11-compilation.patch ];
configureFlags = [
"--with-tests=no"
"--with-boost=${boost.dev}"

Loading…
Cancel
Save