depot/third_party/nixpkgs/pkgs/tools/misc/krapslog/default.nix

25 lines
658 B
Nix
Raw Normal View History

{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv }:
rustPlatform.buildRustPackage rec {
pname = "krapslog";
version = "0.3.2";
src = fetchFromGitHub {
owner = "acj";
repo = "krapslog-rs";
rev = version;
sha256 = "sha256-bzpZuLFSoIjZpK9cbxQEeyRwzuP7aDRG/xn/0056j+c=";
};
cargoSha256 = "sha256-o9e0EakIbi+qk0gPxlPGfNvRidmCklieJ94sYBSR3IY=";
buildInputs = lib.optional stdenv.isDarwin libiconv;
meta = with lib; {
description = "Visualize a log file with sparklines";
homepage = "https://github.com/acj/krapslog-rs";
license = with licenses; [ mit ];
maintainers = with maintainers; [ yanganto ];
};
}