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 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 boost, ··· 40 rev = "bff7fdfe436c727982cc553bdfb29a9021b423b0"; 41 hash = "sha256-VNypeEz9AV0ts8X3vINwYMOgO8VpNmyUPC4iY3OOuZI="; 42 }; 43 - 44 in 45 stdenv.mkDerivation rec { 46 pname = "monero-cli"; ··· 53 hash = "sha256-nDiFJjhsISYM8kTgJUaPYL44iyccnz5+Pd5beBh+lsM="; 54 }; 55 56 - patches = [ ./use-system-libraries.patch ]; 57 58 postPatch = '' 59 # manually install submodules ··· 91 libusb1 92 protobuf_21 93 ] 94 - ++ lib.optionals (trezorSupport && stdenv.hostPlatform.isLinux) [ 95 - udev 96 - ]; 97 98 cmakeFlags = 99 [
··· 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 + fetchpatch2, 6 cmake, 7 pkg-config, 8 boost, ··· 41 rev = "bff7fdfe436c727982cc553bdfb29a9021b423b0"; 42 hash = "sha256-VNypeEz9AV0ts8X3vINwYMOgO8VpNmyUPC4iY3OOuZI="; 43 }; 44 in 45 stdenv.mkDerivation rec { 46 pname = "monero-cli"; ··· 53 hash = "sha256-nDiFJjhsISYM8kTgJUaPYL44iyccnz5+Pd5beBh+lsM="; 54 }; 55 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 + ]; 64 65 postPatch = '' 66 # manually install submodules ··· 98 libusb1 99 protobuf_21 100 ] 101 + ++ lib.optionals (trezorSupport && stdenv.hostPlatform.isLinux) [ udev ]; 102 103 cmakeFlags = 104 [