depot/third_party/nixpkgs/pkgs/development/libraries/sentry-native/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

44 lines
883 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, curl
, breakpad
, pkg-config
}:
stdenv.mkDerivation rec {
pname = "sentry-native";
version = "0.6.2";
src = fetchFromGitHub {
owner = "getsentry";
repo = "sentry-native";
rev = version;
hash = "sha256-cKDKdwkmvmB7O5tvCYtAHFdZFlcTk3I95AuA0dr+oX8=";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs = [
curl
breakpad
];
cmakeFlags = [
"-DCMAKE_BUILD_TYPE=RelWithDebInfo"
"-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 ];
};
}