2020-04-24 23:36:52 +00:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "b3sum";
|
2020-11-24 20:58:05 +00:00
|
|
|
version = "0.3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "BLAKE3-team";
|
|
|
|
repo = "BLAKE3";
|
|
|
|
rev = version;
|
2020-11-24 20:58:05 +00:00
|
|
|
sha256 = "0r3nj7jbrpb2gkkfa9h6nv6blrbv6dlrhxg131qnh340q1ysh0x7";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
sourceRoot = "source/b3sum";
|
|
|
|
|
2021-05-28 09:39:13 +00:00
|
|
|
cargoSha256 = "18l6j756s6qfmiy3z2cai7i62wskf04xi7y4dlcv4aiv4sv3nx9r";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
cargoPatches = [ ./cargo-lock.patch ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "BLAKE3 cryptographic hash function";
|
|
|
|
homepage = "https://github.com/BLAKE3-team/BLAKE3/";
|
2020-11-24 20:58:05 +00:00
|
|
|
maintainers = with lib.maintainers; [ fpletz ivan ];
|
2020-04-24 23:36:52 +00:00
|
|
|
license = with lib.licenses; [ cc0 asl20 ];
|
|
|
|
};
|
|
|
|
}
|