about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2024-03-02 00:05:12 -0500
committerGitHub <noreply@github.com>2024-03-02 00:05:12 -0500
commit06cdd0e4601a04491cfbf30385265f0c5bad6303 (patch)
treead903d2e6f6a9c8423a48efe799a708d8c75f00b /pkgs
parent9c07d2033b98efbb2cc190497e22d62735f4107e (diff)
parent81745f10589aed961196cbc7b46899f11f37c44a (diff)
Merge pull request #291252 from trofi/stellar-core-gcc-13-fix
stellar-core: fix `gcc-13` build
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/blockchains/stellar-core/default.nix18
1 files changed, 18 insertions, 0 deletions
diff --git a/pkgs/applications/blockchains/stellar-core/default.nix b/pkgs/applications/blockchains/stellar-core/default.nix
index 5a70cce931747..16865f7709f34 100644
--- a/pkgs/applications/blockchains/stellar-core/default.nix
+++ b/pkgs/applications/blockchains/stellar-core/default.nix
@@ -2,6 +2,7 @@
 , automake
 , bison
 , fetchFromGitHub
+, fetchpatch
 , flex
 , git
 , lib
@@ -25,6 +26,23 @@ stdenv.mkDerivation (finalAttrs: {
     fetchSubmodules = true;
   };
 
+  patches = [
+    # Fix gcc-13 build failure due to missing <stdexcept> include
+    #   https://github.com/stellar/medida/pull/34
+    (fetchpatch {
+      name = "gcc-13-p1.patch";
+      url = "https://github.com/stellar/medida/commit/f91354b0055de939779d392999975d611b1b1ad5.patch";
+      stripLen = 1;
+      extraPrefix = "lib/libmedida/";
+      hash = "sha256-iVeSUY5Rcy62apIKJdbcHGgxAxpQCkygf85oSjbTTXU=";
+    })
+    (fetchpatch {
+      name = "gcc-13-p2.patch";
+      url = "https://github.com/stellar/stellar-core/commit/477b3135281b629554cabaeacfcdbcdc170aa335.patch";
+      hash = "sha256-UVRcAIA5LEaCn16lWfhg19UU7b/apigzTsfPROLZtYg=";
+    })
+  ];
+
   nativeBuildInputs = [
     automake
     autoconf