Merge pull request #283814 from trofi/localproxy-gcc-13-fix

localproxy: fix `gcc-13` build failure

authored by Maximilian Bosch and committed by GitHub 94a0ddbb 0dfe2e93

+16
+16
pkgs/applications/networking/localproxy/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , fetchFromGitHub 4 + , fetchpatch 4 5 , cmake 5 6 , openssl 6 7 , protobuf_21 ··· 22 23 rev = "v${finalAttrs.version}"; 23 24 hash = "sha256-voUKfXa43mOltePQEXgmJ2EBaN06E6R/2Zz6O09ogyY="; 24 25 }; 26 + 27 + patches = [ 28 + # gcc-13 compatibility fix: 29 + # https://github.com/aws-samples/aws-iot-securetunneling-localproxy/pull/136 30 + (fetchpatch { 31 + name = "gcc-13-part-1.patch"; 32 + url = "https://github.com/aws-samples/aws-iot-securetunneling-localproxy/commit/f6ba73eaede61841534623cdb01b69d793124f4b.patch"; 33 + hash = "sha256-sB9GuEuHLyj6DXNPuYAMibUJXdkThKbS/fxvnJU3rS4="; 34 + }) 35 + (fetchpatch { 36 + name = "gcc-13-part-2.patch"; 37 + url = "https://github.com/aws-samples/aws-iot-securetunneling-localproxy/commit/de8779630d14e4f4969c9b171d826acfa847822b.patch"; 38 + hash = "sha256-11k6mRvCx72+5G/5LZZx2qnx10yfKpcAZofn8t8BD3E="; 39 + }) 40 + ]; 25 41 26 42 nativeBuildInputs = [ cmake ]; 27 43