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";
|
|
|
|
|
2020-11-24 20:58:05 +00:00
|
|
|
cargoSha256 = "0n8hp83hw7g260vmf4qcicpca75faam7k0zmb0k4cdzsar96gdrr";
|
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 ];
|
|
|
|
};
|
|
|
|
}
|