base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12 (#356361)
[NixPkgs.git] / pkgs / tools / security / rblake2sum / default.nix
blob92b4f574749a31bb4a76a6950cf7b7044d4129a0
1 { lib
2 , stdenv
3 , rustPlatform
4 , fetchFromGitHub
5 , Security
6 }:
7 rustPlatform.buildRustPackage {
8   pname = "rblake2sum";
9   version = "0.3.1";
11   src = fetchFromGitHub {
12     owner = "crev-dev";
13     repo = "rblake2sum";
14     rev = "cdbaba9f198bd28bfad2fbc17011ce5c8c7ad957";
15     hash = "sha256-bzOjJ+/M0YWY4/r8cNARPVqbuLBeTllqFyVXhJz6ZMI=";
16   };
18   cargoHash = "sha256-egwL3z7uB4AcRwPT0uPrenyh4FSxhbZKMdkPhRztMbs=";
20   buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ Security ];
22   meta = with lib; {
23     description = "Recursive blake2 digest (hash) of a file-system path";
24     homepage = "https://github.com/crev-dev/rblake2sum";
25     license = [ licenses.mit ];
26     maintainers = with maintainers; [ dpc ];
27     mainProgram = "rblake2sum";
28   };