mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-07 22:33:08 +00:00
976c17127b
Diff: https://github.com/CodSpeedHQ/codspeed-rust/compare/v2.3.2...v2.3.3 Changelog: https://github.com/CodSpeedHQ/codspeed-rust/releases/tag/v2.3.3
52 lines
1.1 KiB
Nix
52 lines
1.1 KiB
Nix
{ lib
|
|
, rustPlatform
|
|
, fetchFromGitHub
|
|
, curl
|
|
, pkg-config
|
|
, libgit2_1_5
|
|
, openssl
|
|
, zlib
|
|
, stdenv
|
|
, darwin
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "cargo-codspeed";
|
|
version = "2.3.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "CodSpeedHQ";
|
|
repo = "codspeed-rust";
|
|
rev = "v${version}";
|
|
hash = "sha256-8wbJFvAXicchxI8FTthCiuYCZ2WA4nMUJTUD4WKG5FI=";
|
|
};
|
|
|
|
cargoHash = "sha256-HkFROhjx4bh9QMUlCT1xj3s7aUQxn0ef3FCXoEsYCnY=";
|
|
|
|
nativeBuildInputs = [
|
|
curl
|
|
pkg-config
|
|
];
|
|
|
|
buildInputs = [
|
|
curl
|
|
libgit2_1_5
|
|
openssl
|
|
zlib
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
darwin.apple_sdk.frameworks.Security
|
|
];
|
|
|
|
cargoBuildFlags = [ "-p=cargo-codspeed" ];
|
|
cargoTestFlags = cargoBuildFlags;
|
|
|
|
meta = with lib; {
|
|
description = "Cargo extension to build & run your codspeed benchmarks";
|
|
homepage = "https://github.com/CodSpeedHQ/codspeed-rust";
|
|
changelog = "https://github.com/CodSpeedHQ/codspeed-rust/releases/tag/${src.rev}";
|
|
license = with licenses; [ mit asl20 ];
|
|
maintainers = with maintainers; [ figsoda ];
|
|
mainProgram = "cargo-codspeed";
|
|
};
|
|
}
|