Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
49 lines
1.2 KiB
Nix
49 lines
1.2 KiB
Nix
{
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
lib,
|
|
installShellFiles,
|
|
openssl,
|
|
pkg-config,
|
|
stdenv,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "sentry-cli";
|
|
version = "2.56.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "getsentry";
|
|
repo = "sentry-cli";
|
|
rev = version;
|
|
hash = "sha256-p9ym9yKGD8AMMU+3TfcLFEqH3Z/bI5NBEPnZtFvk+1E=";
|
|
};
|
|
doCheck = false;
|
|
|
|
# Needed to get openssl-sys to use pkgconfig.
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
buildInputs = [ openssl ];
|
|
nativeBuildInputs = [
|
|
installShellFiles
|
|
pkg-config
|
|
];
|
|
|
|
cargoHash = "sha256-wPJSFxojR8tDfRBcRlhCCDzakghRTYbpQvmZ+F45T5c=";
|
|
|
|
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
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)
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://docs.sentry.io/cli/";
|
|
license = lib.licenses.bsd3;
|
|
description = "Command line utility to work with Sentry";
|
|
mainProgram = "sentry-cli";
|
|
changelog = "https://github.com/getsentry/sentry-cli/raw/${version}/CHANGELOG.md";
|
|
maintainers = with lib.maintainers; [ rizary ];
|
|
};
|
|
}
|