nixpkgs-suyu/pkgs/tools/security/b3sum/default.nix

27 lines
668 B
Nix
Raw Normal View History

2020-02-01 13:51:26 +01:00
{ lib, fetchFromGitHub, rustPlatform }:
rustPlatform.buildRustPackage rec {
pname = "b3sum";
2020-07-07 11:12:53 +02:00
version = "0.3.4";
2020-02-01 13:51:26 +01:00
src = fetchFromGitHub {
owner = "BLAKE3-team";
repo = "BLAKE3";
rev = version;
2020-07-07 11:12:53 +02:00
sha256 = "02yyv91wvy5w7i05z6f3kzxm5x34a4xgkgmcqxnb0ivsxnnld73h";
2020-02-01 13:51:26 +01:00
};
sourceRoot = "source/b3sum";
2020-07-07 11:12:53 +02:00
cargoSha256 = "0ycn5788dc925wx28sgfs121w4x7yggm4mnmwij829ka8859bymk";
2020-02-01 13:51:26 +01:00
cargoPatches = [ ./add-cargo-lock.patch ];
meta = {
description = "BLAKE3 cryptographic hash function";
homepage = "https://github.com/BLAKE3-team/BLAKE3/";
maintainers = with lib.maintainers; [ fpletz ];
license = with lib.licenses; [ cc0 asl20 ];
};
}