Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ rustPlatform 2, fetchFromGitHub 3, lib 4, openssl 5, pkg-config 6, stdenv 7, Security 8, SystemConfiguration 9}: 10rustPlatform.buildRustPackage rec { 11 pname = "sentry-cli"; 12 version = "2.18.1"; 13 14 src = fetchFromGitHub { 15 owner = "getsentry"; 16 repo = "sentry-cli"; 17 rev = version; 18 sha256 = "sha256-RIZLXJIc5a8jgJ2snos6AOqnWmbiKiRlFomvsKg/9rw="; 19 }; 20 doCheck = false; 21 22 # Needed to get openssl-sys to use pkgconfig. 23 OPENSSL_NO_VENDOR = 1; 24 25 buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security SystemConfiguration ]; 26 nativeBuildInputs = [ pkg-config ]; 27 28 cargoHash = "sha256-b4WKszoxBlm0fZzK4YkwwY3+Jff8mXxxoyqwepg1MLo="; 29 30 meta = with lib; { 31 homepage = "https://docs.sentry.io/cli/"; 32 license = licenses.bsd3; 33 description = "A command line utility to work with Sentry"; 34 changelog = "https://github.com/getsentry/sentry-cli/raw/${version}/CHANGELOG.md"; 35 maintainers = with maintainers; [ rizary ]; 36 }; 37}