summary refs log blame commit diff
path: root/pkgs/tools/misc/hyperfine/default.nix
blob: d9c255d2a7a89027b4c1e9e9bea6ed0bb8927ef4 (plain) (tree)
1
2
3
4
5
6
7
8
9
10

                                          
                                   
                                
                    




                                     
                                                                    

    
                                                                       








                                                        
{ stdenv, fetchFromGitHub, rustPlatform }:

rustPlatform.buildRustPackage rec {
  name = "hyperfine-${version}";
  version = "1.1.0";

  src = fetchFromGitHub {
    owner  = "sharkdp";
    repo   = "hyperfine";
    rev    = "refs/tags/v${version}";
    sha256 = "13h43sjp059yq3bmdbb9i1082fkx5yzmhrkf5kpkxhnyn67xbdsg";
  };

  cargoSha256 = "0saf0hl21ba2ckqbsw64908nvs0x1rjrnm73ackzpmv5pi9j567s";

  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;
  };
}