7 rustPlatform.buildRustPackage rec {
11 src = fetchFromGitHub {
15 hash = "sha256-0r5xhmU9a9I+q24mjJ+C4EKK1Nw/67YThuBFibAx3Dw=";
18 cargoHash = "sha256-ljYsF5lBRqiTqx9nta5h/75052GWOBJ9uJnqZkWJvwI=";
20 nativeBuildInputs = [ installShellFiles ];
23 installShellCompletion --cmd snazy \
24 --bash <($out/bin/snazy --shell-completion bash) \
25 --fish <($out/bin/snazy --shell-completion fish) \
26 --zsh <($out/bin/snazy --shell-completion zsh)
29 doInstallCheck = true;
30 installCheckPhase = ''
31 runHook preInstallCheck
33 $out/bin/snazy --version | grep "snazy ${version}"
34 runHook postInstallCheck
38 description = "A snazzy json log viewer";
39 mainProgram = "snazy";
41 Snazy is a simple tool to parse json logs and output them in a nice format
44 homepage = "https://github.com/chmouel/snazy/";
45 changelog = "https://github.com/chmouel/snazy/releases/tag/${src.rev}";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ figsoda jk ];