Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5, curl 6, breakpad 7, pkg-config 8}: 9 10stdenv.mkDerivation rec { 11 pname = "sentry-native"; 12 version = "0.6.2"; 13 14 src = fetchFromGitHub { 15 owner = "getsentry"; 16 repo = "sentry-native"; 17 rev = version; 18 hash = "sha256-cKDKdwkmvmB7O5tvCYtAHFdZFlcTk3I95AuA0dr+oX8="; 19 }; 20 21 nativeBuildInputs = [ 22 cmake 23 pkg-config 24 ]; 25 26 buildInputs = [ 27 curl 28 breakpad 29 ]; 30 31 cmakeFlags = [ 32 "-DCMAKE_BUILD_TYPE=RelWithDebInfo" 33 "-DSENTRY_BREAKPAD_SYSTEM=On" 34 ]; 35 36 meta = with lib; { 37 homepage = "https://github.com/getsentry/sentry-native"; 38 description = "Sentry SDK for C, C++ and native applications"; 39 changelog = "https://github.com/getsentry/sentry-native/blob/${version}/CHANGELOG.md"; 40 license = licenses.mit; 41 platforms = platforms.linux; 42 maintainers = with maintainers; [ wheelsandmetal ]; 43 }; 44}