Merge pull request #259337 from dpc/rblake3sum

rblake3sum: init at 0.4.0
This commit is contained in:
Peder Bergebakken Sundt 2023-12-07 03:53:00 +01:00 committed by GitHub
commit 0d0efa0759
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 34 additions and 0 deletions

View File

@ -24,5 +24,6 @@ rustPlatform.buildRustPackage {
homepage = "https://github.com/crev-dev/rblake2sum";
license = [ licenses.mit ];
maintainers = with maintainers; [ dpc ];
mainProgram = "rblake2sum";
};
}

View File

@ -0,0 +1,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 = "A recursive blake3 digest (hash) of a file-system path";
homepage = "https://github.com/rustshop/rblake3sum";
license = [ licenses.mit ];
maintainers = with maintainers; [ dpc ];
mainProgram = "rblake3sum";
};
}

View File

@ -6324,6 +6324,10 @@ with pkgs;
inherit (darwin.apple_sdk.frameworks) Security;
};
rblake3sum = callPackage ../tools/security/rblake3sum {
inherit (darwin.apple_sdk.frameworks) Security;
};
reg = callPackage ../tools/virtualization/reg { };
retool = callPackage ../applications/misc/retool { };