about summary refs log tree commit diff
path: root/pkgs/tools/security/rblake3sum/default.nix
blob: 62f290cdf320843fca8dd66001e2f33a286a14b1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib
, stdenv
, rustPlatform
, fetchFromGitHub
, Security
}:
rustPlatform.buildRustPackage {
  pname = "rblake3sum";
  version = "0.4.0";

  src = fetchFromGitHub {
    owner = "rustshop";
    repo = "rblake3sum";
    rev = "6a8e2576ccc05214eacb75b75a9d4cfdf272161c";
    hash = "sha256-UFk6SJVA58WXhH1CIuT48MEF19yPUe1HD+ekn4LDj8g=";
  };

  cargoHash = "sha256-SE/Zg/UEV/vhB/VDcn8Y70OUIoxbJBh6H2QgFMkWPc4=";

  buildInputs = lib.optionals stdenv.isDarwin [ Security ];

  meta = with lib; {
    description = "Recursive blake3 digest (hash) of a file-system path";
    homepage = "https://github.com/rustshop/rblake3sum";
    license = [ licenses.mit ];
    maintainers = with maintainers; [ dpc ];
    mainProgram = "rblake3sum";
  };
}