2021-05-16 20:36:23 +01:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv }:
|
2021-02-20 02:40:43 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "krapslog";
|
2022-01-07 15:12:40 +00:00
|
|
|
version = "0.3.1";
|
2021-02-20 02:40:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acj";
|
|
|
|
repo = "krapslog-rs";
|
|
|
|
rev = version;
|
2022-01-07 15:12:40 +00:00
|
|
|
sha256 = "sha256-8m3AATRymIvh0ToldlGdWdmjSyG1CDfS+CfL+l5oj8o=";
|
2021-02-20 02:40:43 +00:00
|
|
|
};
|
|
|
|
|
2022-01-07 15:12:40 +00:00
|
|
|
cargoSha256 = "sha256-2vF+eVuVc5tqVnPV2SgxGLv/DjeYoh3jBiCo0rQQpHE=";
|
2021-02-20 02:40:43 +00:00
|
|
|
|
2021-05-16 20:36:23 +01:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
|
|
|
|
2021-02-20 02:40:43 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|