mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
47 lines
926 B
Nix
47 lines
926 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, curl
|
|
, breakpad
|
|
, pkg-config
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "sentry-native";
|
|
version = "0.7.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "getsentry";
|
|
repo = "sentry-native";
|
|
rev = version;
|
|
hash = "sha256-L7VlsxgjWPCceDuJ9OR6Et6wzaBn1hb0AOFbc7PuZWw=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
cmake
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
curl
|
|
breakpad
|
|
];
|
|
|
|
cmakeBuildType = "RelWithDebInfo";
|
|
|
|
cmakeFlags = [
|
|
"-DSENTRY_BREAKPAD_SYSTEM=On"
|
|
"-DSENTRY_BACKEND=breakpad"
|
|
];
|
|
|
|
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 daniel-fahey ];
|
|
};
|
|
}
|