Merge pull request #240363 from figsoda/snazy
This commit is contained in:
commit
6df7cf2979
1 changed files with 21 additions and 6 deletions
|
@ -1,17 +1,32 @@
|
||||||
{ lib, rustPlatform, fetchFromGitHub, installShellFiles }:
|
{ lib
|
||||||
|
, rustPlatform
|
||||||
|
, fetchFromGitHub
|
||||||
|
, fetchpatch
|
||||||
|
, installShellFiles
|
||||||
|
}:
|
||||||
|
|
||||||
rustPlatform.buildRustPackage rec {
|
rustPlatform.buildRustPackage rec {
|
||||||
pname = "snazy";
|
pname = "snazy";
|
||||||
version = "0.50.0";
|
version = "0.51.2";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "chmouel";
|
owner = "chmouel";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "sha256-wSRIJF2XPJvzmxuGbuPYPFgn9Eap3vqHT1CM/oQy8vM=";
|
hash = "sha256-k8dcALE5+5kqNKhmiLT0Ir8SRYOIp8eV3a/xYWrKpNw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
cargoSha256 = "sha256-IGZZEyy9IGqkpsbnOzLdBSFbinZ7jhH2LWub/+gP89E=";
|
cargoHash = "sha256-mBA2BhGeYR57UrqI1qtByTkTocMymjCWlWhh4+Ko8wY=";
|
||||||
|
|
||||||
|
cargoPatches = [
|
||||||
|
# update Cargo.toml to fix the version
|
||||||
|
# https://github.com/chmouel/snazy/pull/178
|
||||||
|
(fetchpatch {
|
||||||
|
name = "update-version-in-cargo-toml.patch";
|
||||||
|
url = "https://github.com/chmouel/snazy/commit/4fd92c7336f51d032a0baf60fd5ab8c1056ad14f.patch";
|
||||||
|
hash = "sha256-WT/HHB9HB+X/L5FZdvQAG8K7PrYHQD8F5aWQVaMJuIU=";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [ installShellFiles ];
|
nativeBuildInputs = [ installShellFiles ];
|
||||||
|
|
||||||
|
@ -31,13 +46,13 @@ rustPlatform.buildRustPackage rec {
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
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";
|
description = "A snazzy json log viewer";
|
||||||
longDescription = ''
|
longDescription = ''
|
||||||
Snazy is a simple tool to parse json logs and output them in a nice format
|
Snazy is a simple tool to parse json logs and output them in a nice format
|
||||||
with nice colors.
|
with nice colors.
|
||||||
'';
|
'';
|
||||||
|
homepage = "https://github.com/chmouel/snazy/";
|
||||||
|
changelog = "https://github.com/chmouel/snazy/releases/tag/${src.rev}";
|
||||||
license = licenses.asl20;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ figsoda jk ];
|
maintainers = with maintainers; [ figsoda jk ];
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue