breakpad: fix build w/glibc-2.34

Failing Hydra build: https://hydra.nixos.org/build/155160812

Fix derived from Fedora's Chromium fix[1].

[1] https://src.fedoraproject.org/rpms/chromium/blob/c3fea076996d62bff1404d06de5ef3adf93426db/f/chromium-92.0.4515.107-rawhide-gcc-std-max-fix.patch
This commit is contained in:
Maximilian Bosch
2022-02-27 10:26:49 +01:00
parent dbe99a0172
commit f8fc20df2b
@@ -20,6 +20,11 @@ in stdenv.mkDerivation {
ln -s ${lss} $sourceRoot/src/third_party/lss
'';
postPatch = ''
substituteInPlace src/client/linux/handler/exception_handler.cc \
--replace "max(16384" "max(static_cast<long>(16384)"
'';
meta = with lib; {
description = "An open-source multi-platform crash reporting system";
homepage = "https://chromium.googlesource.com/breakpad";