{ lib, stdenv, fetchFromGitHub, cmake, curl, breakpad, pkg-config, }: stdenv.mkDerivation rec { pname = "sentry-native"; version = "0.11.2"; src = fetchFromGitHub { owner = "getsentry"; repo = "sentry-native"; tag = version; hash = "sha256-t1wv6/HFOo6UVkrurIg/GbqZTfZBrfrdIEKyqg86M/4="; }; nativeBuildInputs = [ cmake pkg-config ]; buildInputs = [ curl breakpad ]; cmakeBuildType = "RelWithDebInfo"; cmakeFlags = [ "-DSENTRY_BREAKPAD_SYSTEM=On" "-DSENTRY_BACKEND=breakpad" ]; meta = { homepage = "https://github.com/getsentry/sentry-native"; description = "Sentry SDK for C, C++ and native applications"; changelog = "https://github.com/getsentry/sentry-native/blob/${version}/CHANGELOG.md"; license = lib.licenses.mit; platforms = lib.platforms.linux; maintainers = with lib.maintainers; [ wheelsandmetal daniel-fahey ]; }; }