nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at devShellTools-shell 47 lines 1.1 kB view raw
1{ 2 lib, 3 stdenv, 4 fetchgit, 5 fetchpatch, 6 zlib, 7}: 8let 9 lss = fetchgit { 10 url = "https://chromium.googlesource.com/linux-syscall-support"; 11 rev = "v2022.10.12"; 12 hash = "sha256-rF10v5oH4u9i9vnmFCVVl2Ew3h+QTiOsW64HeB0nRQU="; 13 }; 14in 15stdenv.mkDerivation (finalAttrs: { 16 pname = "breakpad"; 17 18 version = "2023.06.01"; 19 20 src = fetchgit { 21 url = "https://chromium.googlesource.com/breakpad/breakpad"; 22 rev = "v${finalAttrs.version}"; 23 hash = "sha256-8AkC/8oX4OWAcV21laJ0AeMRB9G04rFc6UJFy7Wus4A="; 24 }; 25 26 patches = [ 27 (fetchpatch { 28 name = "gcc-14-fixes.patch"; 29 url = "https://github.com/google/breakpad/commit/898a997855168c0e6a689072fefba89246271a5d.patch"; 30 hash = "sha256-OxodMx7XfKiD9j6b8oFvloslYagSSpQn7BPdpMVOoDY="; 31 }) 32 ]; 33 34 buildInputs = [ zlib ]; 35 36 postUnpack = '' 37 ln -s ${lss} $sourceRoot/src/third_party/lss 38 ''; 39 40 meta = with lib; { 41 description = "Open-source multi-platform crash reporting system"; 42 homepage = "https://chromium.googlesource.com/breakpad"; 43 license = licenses.bsd3; 44 maintainers = with maintainers; [ berberman ]; 45 platforms = platforms.all; 46 }; 47})