Skip to content

Commit 9cd4a8d

Browse files
Add missing includes to fix gcc 13 compile error
1 parent 24cbbbc commit 9cd4a8d

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

elements.nix

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
args@
2-
{ stdenv, fetchFromGitHub ? null, pkg-config, autoreconfHook, db48, boost, zeromq
2+
{ stdenv, fetchFromGitHub ? null, fetchpatch, pkg-config, autoreconfHook, db48, boost, zeromq
33
, zlib, miniupnpc, qtbase ? null, qttools ? null, util-linux ? null, hexdump ? null, protobuf, python3, qrencode, libevent
44
, lcov ? null
55
, lib, writeText
@@ -33,7 +33,19 @@ stdenv.mkDerivation rec {
3333
sha256 = "sha256-UNjYkEZBjGuhkwBxSkNXjBBcLQqoan/afCLhoR2lOY4=";
3434
};
3535

36-
patches = [ ./elements-lcov.patch ];
36+
patches = [
37+
./elements-lcov.patch
38+
(fetchpatch {
39+
name = "Add-missing-includes-to-fix-gcc-13-compile-error.patch";
40+
url = "https://github.com/bitcoin/bitcoin/commit/398768769f85cc1b6ff212ed931646b59fa1acd6.patch";
41+
hash = "sha256-4nnE4W0Z5HzVaJ6tB8QmyohXmt6UHUGgDH+s9bQaxhg=";
42+
})
43+
(fetchpatch {
44+
name = "23-x-Add-missing-includes-to-fix-gcc-13-compile-error.patch";
45+
url = "https://github.com/bitcoin/bitcoin/commit/af862661654966d5de614755ab9bd1b5913e0959.patch";
46+
hash = "sha256-4hcJIje3VAdEEpn2tetgvgZ8nVft+A64bfWLspQtbVw=";
47+
})
48+
];
3749

3850
postPatch = optionals (doCheck)
3951
''

0 commit comments

Comments
 (0)