2022-04-27 12:22:06 +02:00
|
|
|
{ lib, fetchFromGitHub, rustPlatform }:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "snazy";
|
2022-05-09 13:42:01 +02:00
|
|
|
version = "0.9.0";
|
2022-04-27 12:22:06 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "chmouel";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-05-09 13:42:01 +02:00
|
|
|
sha256 = "sha256-SoyGvy1F39kvMLuT9QFXiGEpN0DWS3X9ZDZhFocymCw=";
|
2022-04-27 12:22:06 +02:00
|
|
|
};
|
2022-05-09 13:42:01 +02:00
|
|
|
cargoSha256 = "sha256-vz2bXmuRWFCx7dH0u2zVJLurtUAQ51ZqWVAcuUrm6d8=";
|
2022-04-27 12:22:06 +02:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|