nixpkgs/pkgs/development/tools/rust/critcmp/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

27 lines
650 B
Nix

{ lib
, rustPlatform
, fetchFromGitHub
}:
rustPlatform.buildRustPackage rec {
pname = "critcmp";
version = "0.1.8";
src = fetchFromGitHub {
owner = "BurntSushi";
repo = "critcmp";
rev = version;
hash = "sha256-cf78R9siH0RFbx+vXTs71VblpsQokL6Uo32N3X4lV2I=";
};
cargoHash = "sha256-yzWa+/08tG8h+5V8XBc3k8GDivS6SHW6zVb+ug1sbE0=";
meta = with lib; {
description = "A command line tool for comparing benchmarks run by Criterion";
mainProgram = "critcmp";
homepage = "https://github.com/BurntSushi/critcmp";
license = with licenses; [ mit unlicense ];
maintainers = with maintainers; [ figsoda ];
};
}