2021-06-28 23:13:55 +00:00
|
|
|
{ rustPlatform
|
|
|
|
, fetchFromGitHub
|
|
|
|
, lib
|
2024-02-29 20:09:43 +00:00
|
|
|
, installShellFiles
|
2021-06-28 23:13:55 +00:00
|
|
|
, openssl
|
|
|
|
, pkg-config
|
|
|
|
, stdenv
|
2024-01-13 08:15:51 +00:00
|
|
|
, CoreServices
|
2021-06-28 23:13:55 +00:00
|
|
|
, Security
|
2021-09-18 10:52:07 +00:00
|
|
|
, SystemConfiguration
|
2021-06-28 23:13:55 +00:00
|
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "sentry-cli";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2.31.0";
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "getsentry";
|
|
|
|
repo = "sentry-cli";
|
|
|
|
rev = version;
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-2F8f+vw559FI7CCiLkP8WLpLzDYzr3SHf/Ec8yFHu6g=";
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
# Needed to get openssl-sys to use pkgconfig.
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
|
2024-01-13 08:15:51 +00:00
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ CoreServices Security SystemConfiguration ];
|
2024-02-29 20:09:43 +00:00
|
|
|
nativeBuildInputs = [ installShellFiles pkg-config ];
|
2021-06-28 23:13:55 +00:00
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
cargoHash = "sha256-G/c84j9BquLCJcl60H0ZZZDxjTHpaGHflfJL/hzdgYQ=";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
installShellCompletion --cmd sentry-cli \
|
|
|
|
--bash <($out/bin/sentry-cli completions bash) \
|
|
|
|
--fish <($out/bin/sentry-cli completions fish) \
|
|
|
|
--zsh <($out/bin/sentry-cli completions zsh)
|
|
|
|
'';
|
2021-06-28 23:13:55 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://docs.sentry.io/cli/";
|
|
|
|
license = licenses.bsd3;
|
2021-09-18 10:52:07 +00:00
|
|
|
description = "A command line utility to work with Sentry";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "sentry-cli";
|
2021-09-18 10:52:07 +00:00
|
|
|
changelog = "https://github.com/getsentry/sentry-cli/raw/${version}/CHANGELOG.md";
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ rizary loewenheim ];
|
2021-06-28 23:13:55 +00:00
|
|
|
};
|
|
|
|
}
|