1{ lib, stdenv, fetchgit }:
2let
3 lss = fetchgit {
4 url = "https://chromium.googlesource.com/linux-syscall-support";
5 rev = "d9ad2969b369a9f1c455fef92d04c7628f7f9eb8";
6 sha256 = "952dv+ZE1ge/WF5RyHmEqht+AofoRHKAeFmGasVF9BA=";
7 };
8in stdenv.mkDerivation {
9 pname = "breakpad";
10
11 version = "unstable-3b3469e";
12
13 src = fetchgit {
14 url = "https://chromium.googlesource.com/breakpad/breakpad";
15 rev = "3b3469e9ed0de3d02e4450b9b95014a4266cf2ff";
16 sha256 = "bRGOBrGPK+Zxp+KK+E5MFkYlDUNVhVeInVSwq+eCAF0=";
17 };
18
19 postUnpack = ''
20 ln -s ${lss} $sourceRoot/src/third_party/lss
21 '';
22
23 postPatch = ''
24 substituteInPlace src/client/linux/handler/exception_handler.cc \
25 --replace "max(16384" "max(static_cast<long>(16384)"
26 '';
27
28 meta = with lib; {
29 description = "An open-source multi-platform crash reporting system";
30 homepage = "https://chromium.googlesource.com/breakpad";
31 license = licenses.bsd3;
32 maintainers = with maintainers; [ berberman ];
33 platforms = platforms.all;
34 };
35}