2018-02-15 19:46:40 +00:00
|
|
|
{ stdenv, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
2018-06-11 23:10:56 +01:00
|
|
|
rustPlatform.buildRustPackage rec {
|
2018-02-15 19:46:40 +00:00
|
|
|
name = "hyperfine-${version}";
|
2018-06-11 23:10:56 +01:00
|
|
|
version = "1.1.0";
|
2018-02-15 19:46:40 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sharkdp";
|
|
|
|
repo = "hyperfine";
|
|
|
|
rev = "refs/tags/v${version}";
|
2018-06-11 23:10:56 +01:00
|
|
|
sha256 = "13h43sjp059yq3bmdbb9i1082fkx5yzmhrkf5kpkxhnyn67xbdsg";
|
2018-02-15 19:46:40 +00:00
|
|
|
};
|
|
|
|
|
2018-03-25 09:04:08 +01:00
|
|
|
cargoSha256 = "0saf0hl21ba2ckqbsw64908nvs0x1rjrnm73ackzpmv5pi9j567s";
|
2018-02-15 19:46:40 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Command-line benchmarking tool";
|
|
|
|
homepage = https://github.com/sharkdp/hyperfine;
|
|
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
|
|
maintainers = [ maintainers.thoughtpolice ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|