1{ lib, fetchCrate, rustPlatform }:
2
3rustPlatform.buildRustPackage rec {
4 pname = "b3sum";
5 version = "1.5.1";
6
7 src = fetchCrate {
8 inherit version pname;
9 sha256 = "sha256-43O/8s6g9mHkmJcxm1czF+tOB22363olfsIB3Sk/QSc=";
10 };
11
12 cargoHash = "sha256-NG5LCfsh9O6HEXOB3AN/2rXFIkshNM6WWANraBKuVLw=";
13
14 meta = {
15 description = "BLAKE3 cryptographic hash function";
16 mainProgram = "b3sum";
17 homepage = "https://github.com/BLAKE3-team/BLAKE3/";
18 maintainers = with lib.maintainers; [ fpletz ivan ];
19 license = with lib.licenses; [ cc0 asl20 ];
20 changelog = "https://github.com/BLAKE3-team/BLAKE3/releases/tag/${version}";
21 };
22}