From 964b613a0ddb5b4dd9e40d30bec124172aba1378 Mon Sep 17 00:00:00 2001 From: Sergei Trofimovich Date: Sun, 18 Feb 2024 23:00:26 +0000 Subject: [PATCH] litecoin: fix `gcc-13` build failure Without the change build fails on `master` as https://hydra.nixos.org/build/249019697: support/lockedpool.cpp: In member function 'void Arena::free(void*)': support/lockedpool.cpp:102:20: error: 'runtime_error' is not a member of 'std' 102 | throw std::runtime_error("Arena: invalid or double free"); | ^~~~~~~~~~~~~ --- pkgs/applications/blockchains/litecoin/default.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pkgs/applications/blockchains/litecoin/default.nix b/pkgs/applications/blockchains/litecoin/default.nix index 85436f6023a6..c8e3140eb5de 100644 --- a/pkgs/applications/blockchains/litecoin/default.nix +++ b/pkgs/applications/blockchains/litecoin/default.nix @@ -26,6 +26,14 @@ mkDerivation rec { url = "https://aur.archlinux.org/cgit/aur.git/plain/boost1770.patch?h=litecoin-qt&id=dc75ad854af123f375b5b683be64aa14573170d7"; hash = "sha256-PTkYQRA8n5a9yR2AvpzH5natsXT2W6Xjo0ONCPJx78k="; }) + + # Fix gcc-13 build by adding missing headers: + # https://github.com/litecoin-project/litecoin/pull/929 + (fetchpatch { + name = "gcc-13.patch"; + url = "https://github.com/litecoin-project/litecoin/commit/6d1adb19aa79a8e8e140582759515bbd76816aa0.patch"; + hash = "sha256-1y4Iz2plMw5HMAjl9x50QQpYrYaUd2WKrrAcUnQmlBY="; + }) ]; nativeBuildInputs = [ pkg-config autoreconfHook ];