1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 18:42:15 +00:00
nixpkgs/pkgs/tools/misc/hyperfine/default.nix
Alyssa Ross 062210bdff treewide: update cargoSha256 hashes for cargo-vendor upgrade
A recent upgrade of cargo-vendor changed its output slightly, which
broke all cargoSha256 hashes in nixpkgs.
See https://github.com/NixOS/nixpkgs/issues/60668 for more information.

Since then, a few hashes have been fixed in master by hand, but there
were a lot still to do, so I did all of the ones left over with some
scripts I wrote.

The one hash I wasn’t able to update was habitat's, because it’s
currently broken and the build doesn’t get far enough to produce a
hash anyway.
2019-06-01 15:17:52 +00:00

28 lines
753 B
Nix

{ stdenv, fetchFromGitHub, rustPlatform
, Security
}:
rustPlatform.buildRustPackage rec {
name = "hyperfine-${version}";
version = "1.4.0";
src = fetchFromGitHub {
owner = "sharkdp";
repo = "hyperfine";
rev = "refs/tags/v${version}";
sha256 = "1mn5nv3zljj2wz40imf62gknv84f7igslsf59gg1qvhgvgsd98sp";
};
cargoSha256 = "138m29nl65rg3gx2wkx0jj7p8i2csh9kq03v4arp3mnbglp4802y";
buildInputs = stdenv.lib.optional stdenv.isDarwin Security;
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;
};
}