Skip to content

Commit

Permalink
Merge pull request NixOS#259337 from dpc/rblake3sum
Browse files Browse the repository at this point in the history
rblake3sum: init at 0.4.0
  • Loading branch information
pbsds authored Dec 7, 2023
2 parents 04e5b46 + 725e83e commit 0d0efa0
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/tools/security/rblake2sum/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,6 @@ rustPlatform.buildRustPackage {
homepage = "https://github.com/crev-dev/rblake2sum";
license = [ licenses.mit ];
maintainers = with maintainers; [ dpc ];
mainProgram = "rblake2sum";
};
}
29 changes: 29 additions & 0 deletions pkgs/tools/security/rblake3sum/default.nix
Original file line number Diff line number Diff line change
@@ -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";
};
}
4 changes: 4 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit 0d0efa0

Please sign in to comment.