blob: d1f5c7d26f913c320a2e85f2ccf3c70f790aa6a1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{ lib
, rustPlatform
, fetchFromGitHub
, curl
, pkg-config
, libgit2_1_5
, openssl
, zlib
, stdenv
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "cargo-codspeed";
version = "2.3.2";
src = fetchFromGitHub {
owner = "CodSpeedHQ";
repo = "codspeed-rust";
rev = "v${version}";
hash = "sha256-TjK84A/hoG5TyXbXgr4SPolUBT9tMqz/Mn9pMK6BQE4=";
};
cargoHash = "sha256-Nfd8YBh+5HlLbxKajptJEH3NFbtBH2V6668c3DHc13g=";
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";
};
}
|