monero-cli: fix build issue with GCC14 (#367932)

authored by Michele Guerini Rocco and committed by GitHub d6678a74 308f45a5

+10 -5
+10 -5
pkgs/applications/blockchains/monero-cli/default.nix
··· 2 2 lib, 3 3 stdenv, 4 4 fetchFromGitHub, 5 + fetchpatch2, 5 6 cmake, 6 7 pkg-config, 7 8 boost, ··· 40 41 rev = "bff7fdfe436c727982cc553bdfb29a9021b423b0"; 41 42 hash = "sha256-VNypeEz9AV0ts8X3vINwYMOgO8VpNmyUPC4iY3OOuZI="; 42 43 }; 43 - 44 44 in 45 45 stdenv.mkDerivation rec { 46 46 pname = "monero-cli"; ··· 53 53 hash = "sha256-nDiFJjhsISYM8kTgJUaPYL44iyccnz5+Pd5beBh+lsM="; 54 54 }; 55 55 56 - patches = [ ./use-system-libraries.patch ]; 56 + patches = [ 57 + ./use-system-libraries.patch 58 + # https://github.com/monero-project/monero/pull/9462 59 + (fetchpatch2 { 60 + url = "https://github.com/monero-project/monero/commit/65568d3a884857ce08d1170f5801a6891a5c187c.patch?full_index=1"; 61 + hash = "sha256-Btuy69y02UyVMmsOiCRPZhM7qW5+FRNujOZjNMRdACQ="; 62 + }) 63 + ]; 57 64 58 65 postPatch = '' 59 66 # manually install submodules ··· 91 98 libusb1 92 99 protobuf_21 93 100 ] 94 - ++ lib.optionals (trezorSupport && stdenv.hostPlatform.isLinux) [ 95 - udev 96 - ]; 101 + ++ lib.optionals (trezorSupport && stdenv.hostPlatform.isLinux) [ udev ]; 97 102 98 103 cmakeFlags = 99 104 [