nixpkgs/pkgs/development/tools/sentry-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

47 lines
1.2 KiB
Nix
Raw Normal View History

2021-06-14 15:37:13 +00:00
{ rustPlatform
, fetchFromGitHub
, lib
2024-01-08 11:00:58 +00:00
, installShellFiles
2021-06-14 15:37:13 +00:00
, openssl
, pkg-config
, stdenv
2024-01-03 14:37:50 +00:00
, CoreServices
2021-06-14 15:37:13 +00:00
, Security
2021-08-28 00:04:20 +00:00
, SystemConfiguration
2021-06-14 15:37:13 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "sentry-cli";
2024-02-16 05:15:13 +00:00
version = "2.28.6";
2021-06-14 15:37:13 +00:00
src = fetchFromGitHub {
owner = "getsentry";
repo = "sentry-cli";
rev = version;
2024-02-16 05:15:13 +00:00
sha256 = "sha256-cynq7w0xLnLafStcfrG27PNHVoMu4TxFIwwrWjj9ynM=";
2021-06-14 15:37:13 +00:00
};
doCheck = false;
# Needed to get openssl-sys to use pkgconfig.
OPENSSL_NO_VENDOR = 1;
2024-01-03 14:37:50 +00:00
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ CoreServices Security SystemConfiguration ];
2024-01-08 11:00:58 +00:00
nativeBuildInputs = [ installShellFiles pkg-config ];
2021-06-14 15:37:13 +00:00
2024-02-16 05:15:13 +00:00
cargoHash = "sha256-MChhtWbwi5/1GMXxlKov8LrO+kp7D6u4u1lmEjZvyP8=";
2021-06-14 15:37:13 +00:00
2024-01-08 11:00:58 +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-14 15:37:13 +00:00
meta = with lib; {
homepage = "https://docs.sentry.io/cli/";
license = licenses.bsd3;
2021-08-28 00:04:20 +00:00
description = "A command line utility to work with Sentry";
changelog = "https://github.com/getsentry/sentry-cli/raw/${version}/CHANGELOG.md";
2023-09-08 08:57:11 +00:00
maintainers = with maintainers; [ rizary loewenheim ];
2021-06-14 15:37:13 +00:00
};
}