b5f92a349c
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
45 lines
881 B
Nix
45 lines
881 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, curl
|
|
, breakpad
|
|
, pkg-config
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sentry-native";
|
|
version = "0.6.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "getsentry";
|
|
repo = "sentry-native";
|
|
rev = version;
|
|
hash = "sha256-mi9mEyb25fb3W6X07TX36fW6T2SOPOkDvpIXQn5sg8Q=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
curl
|
|
breakpad
|
|
];
|
|
|
|
cmakeBuildType = "RelWithDebInfo";
|
|
|
|
cmakeFlags = [
|
|
"-DSENTRY_BREAKPAD_SYSTEM=On"
|
|
];
|
|
|
|
meta = with lib; {
|
|
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 = licenses.mit;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ wheelsandmetal ];
|
|
};
|
|
}
|