2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "b3sum";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "0.3.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BLAKE3-team";
|
|
|
|
repo = "BLAKE3";
|
|
|
|
rev = version;
|
2020-07-18 16:06:22 +00:00
|
|
|
sha256 = "02yyv91wvy5w7i05z6f3kzxm5x34a4xgkgmcqxnb0ivsxnnld73h";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "source/b3sum";
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
cargoSha256 = "0ycn5788dc925wx28sgfs121w4x7yggm4mnmwij829ka8859bymk";
|
2020-04-24 23:36:52 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|