srisum: init at 5.0.0
this is a small utility in the shape of shasum to generate subresource integrity hashes on the command line.
This commit is contained in:
parent
e2a47abbc3
commit
b0146128df
29
pkgs/tools/misc/srisum/default.nix
Normal file
29
pkgs/tools/misc/srisum/default.nix
Normal file
|
@ -0,0 +1,29 @@
|
||||||
|
{ lib
|
||||||
|
, stdenv
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
}:
|
||||||
|
|
||||||
|
rustPlatform.buildRustPackage rec {
|
||||||
|
pname = "srisum";
|
||||||
|
version = "5.0.0";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "zkat";
|
||||||
|
repo = "srisum-rs";
|
||||||
|
rev = "v${version}";
|
||||||
|
hash = "sha256-Nw3uTGOcz1ivAm9X+PnOdNA937wuK3vtJQ0iJHlHVdw=";
|
||||||
|
};
|
||||||
|
cargoHash = "sha256-q6FGykY+HmU3/jMaGRO36OlYGVLG9mU8yZ8j/Shux3s=";
|
||||||
|
|
||||||
|
doInstallCheck = true;
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "A command-line utility to compute and check subresource integrity hashes";
|
||||||
|
homepage = "https://github.com/zkat/srisum-rs";
|
||||||
|
changelog = "https://github.com/zkat/srisum-rs/raw/v${version}/CHANGELOG.md";
|
||||||
|
license = with licenses; [ asl20 ];
|
||||||
|
maintainers = with maintainers; [ pjjw ];
|
||||||
|
platforms = platforms.all;
|
||||||
|
};
|
||||||
|
}
|
|
@ -28588,6 +28588,8 @@ with pkgs;
|
||||||
|
|
||||||
skopeo = callPackage ../development/tools/skopeo { };
|
skopeo = callPackage ../development/tools/skopeo { };
|
||||||
|
|
||||||
|
srisum = callPackage ../tools/misc/srisum { };
|
||||||
|
|
||||||
smem = callPackage ../os-specific/linux/smem { };
|
smem = callPackage ../os-specific/linux/smem { };
|
||||||
|
|
||||||
smimesign = callPackage ../os-specific/darwin/smimesign { };
|
smimesign = callPackage ../os-specific/darwin/smimesign { };
|
||||||
|
|
Loading…
Reference in a new issue