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

27 lines
669 B
Nix
Raw Normal View History

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