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

41 lines
911 B
Nix
Raw Normal View History

2021-06-14 17:37:13 +02:00
{ rustPlatform
, fetchFromGitHub
, lib
, openssl
, file
, rpm
, pkg-config
, stdenv
, curl
, Security
, runCommand
}:
rustPlatform.buildRustPackage rec {
pname = "sentry-cli";
2021-08-18 01:11:35 +02:00
version = "1.68.0";
2021-06-14 17:37:13 +02:00
src = fetchFromGitHub {
owner = "getsentry";
repo = "sentry-cli";
rev = version;
2021-08-18 01:11:35 +02:00
sha256 = "sha256-JhKRfeAaSs4KwfcI88UbqIXNw0aZytPkIxkwrg1d2xM=";
2021-06-14 17:37:13 +02:00
};
doCheck = false;
# Needed to get openssl-sys to use pkgconfig.
OPENSSL_NO_VENDOR = 1;
buildInputs = [ openssl file rpm ] ++ lib.optionals stdenv.isDarwin [ Security curl ];
nativeBuildInputs = [ pkg-config ];
2021-08-18 01:11:35 +02:00
cargoSha256 = "sha256-iV3D4ka8Sg1FMRne3A6npmZm3hFP9Qi/NdmT62BtO+8=";
2021-06-14 17:37:13 +02:00
meta = with lib; {
homepage = "https://docs.sentry.io/cli/";
license = licenses.bsd3;
description = "A command line utility to work with Sentry.";
maintainers = with maintainers; [ rizary ];
platforms = platforms.unix;
};
}