snazy: init at 0.4.0
This commit is contained in:
parent
1a4307af6d
commit
1d3f046e90
34
pkgs/development/tools/snazy/default.nix
Normal file
34
pkgs/development/tools/snazy/default.nix
Normal file
@ -0,0 +1,34 @@
|
||||
{ lib, fetchFromGitHub, rustPlatform }:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "snazy";
|
||||
version = "0.4.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "chmouel";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-Pv+vLdbMTbDbdUVQhA07WY+o1PwtCiqdAXCj+UlP/ZQ=";
|
||||
};
|
||||
cargoSha256 = "sha256-96xgpkkWHsyb3kxEXM5f5jFSjbO+VEmX2uHltGJUPGk=";
|
||||
|
||||
doInstallCheck = true;
|
||||
installCheckPhase = ''
|
||||
runHook preInstallCheck
|
||||
$out/bin/snazy --help
|
||||
$out/bin/snazy --version | grep "snazy ${version}"
|
||||
runHook postInstallCheck
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/chmouel/snazy/";
|
||||
changelog = "https://github.com/chmouel/snazy/releases/tag/v${version}";
|
||||
description = "A snazzy json log viewer";
|
||||
longDescription = ''
|
||||
Snazy is a simple tool to parse json logs and output them in a nice format
|
||||
with nice colors.
|
||||
'';
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ jk ];
|
||||
};
|
||||
}
|
@ -4119,6 +4119,8 @@ with pkgs;
|
||||
|
||||
simg2img = callPackage ../tools/filesystems/simg2img { };
|
||||
|
||||
snazy = callPackage ../development/tools/snazy { };
|
||||
|
||||
snippetpixie = callPackage ../tools/text/snippetpixie { };
|
||||
|
||||
snowcat = callPackage ../tools/security/snowcat { };
|
||||
|
Loading…
Reference in New Issue
Block a user