fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ lib
2, rustPlatform
3, fetchFromGitHub
4, substituteAll
5, stdenv
6}:
7
8rustPlatform.buildRustPackage rec {
9 pname = "cargo-benchcmp";
10 version = "0.4.4";
11
12 src = fetchFromGitHub {
13 owner = "BurntSushi";
14 repo = "cargo-benchcmp";
15 rev = version;
16 hash = "sha256-pg3/VUC1DQ7GbSQDfVZ0WNisXvzXy0O0pr2ik2ar2h0=";
17 };
18
19 cargoHash = "sha256-vxy9Ym3Twx034I1E5fWNnbP1ttfLolMbO1IgRiPfhRw=";
20
21 patches = [
22 # patch the binary path so tests can find the binary when `--target` is present
23 (substituteAll {
24 src = ./fix-test-binary-path.patch;
25 shortTarget = stdenv.hostPlatform.rust.rustcTarget;
26 })
27 ];
28
29 checkFlags = [
30 # thread 'different_input_colored' panicked at 'assertion failed: `(left == right)`
31 "--skip=different_input_colored"
32 ];
33
34 meta = with lib; {
35 description = "A small utility to compare Rust micro-benchmarks";
36 mainProgram = "cargo-benchcmp";
37 homepage = "https://github.com/BurntSushi/cargo-benchcmp";
38 license = with licenses; [ mit unlicense ];
39 maintainers = with maintainers; [ figsoda ];
40 };
41}