nerdfonts: fix wrong attribute name in error message (#364463)
[NixPkgs.git] / pkgs / by-name / ca / cargo-benchcmp / package.nix
blobcbb86ed458e631ea342d5cda06d4ae0bd9cb93d6
2   lib,
3   rustPlatform,
4   fetchFromGitHub,
5   substituteAll,
6   stdenv,
7 }:
9 rustPlatform.buildRustPackage rec {
10   pname = "cargo-benchcmp";
11   version = "0.4.5";
13   src = fetchFromGitHub {
14     owner = "BurntSushi";
15     repo = "cargo-benchcmp";
16     rev = version;
17     hash = "sha256-J8KFI0V/mOhUlYtVnFAQgPIpXL9/dLhOFxSly4bR00I=";
18   };
20   cargoHash = "sha256-2V9ILHnDsUI+x3f5o+V7p8rPUKf33PAkpyTabCPdd0g=";
22   patches = [
23     # patch the binary path so tests can find the binary when `--target` is present
24     (substituteAll {
25       src = ./fix-test-binary-path.patch;
26       shortTarget = stdenv.hostPlatform.rust.rustcTarget;
27     })
28   ];
30   checkFlags = [
31     # thread 'different_input_colored' panicked at 'assertion failed: `(left == right)`
32     "--skip=different_input_colored"
33   ];
35   meta = with lib; {
36     description = "Small utility to compare Rust micro-benchmarks";
37     mainProgram = "cargo-benchcmp";
38     homepage = "https://github.com/BurntSushi/cargo-benchcmp";
39     license = with licenses; [
40       mit
41       unlicense
42     ];
43     maintainers = with maintainers; [ figsoda ];
44   };