2021-05-16 21:36:23 +02:00
|
|
|
{ lib, stdenv, rustPlatform, fetchFromGitHub, libiconv }:
|
2021-02-20 03:40:43 +01:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "krapslog";
|
2021-07-13 01:10:06 +02:00
|
|
|
version = "0.3.0";
|
2021-02-20 03:40:43 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acj";
|
|
|
|
repo = "krapslog-rs";
|
|
|
|
rev = version;
|
2021-07-13 01:10:06 +02:00
|
|
|
sha256 = "sha256-IXbOmeWLhGOijO1xLItw1wzbHxl0Zyd0dHvfcaPWE8U=";
|
2021-02-20 03:40:43 +01:00
|
|
|
};
|
|
|
|
|
2021-07-13 01:10:06 +02:00
|
|
|
cargoSha256 = "sha256-2XCtjMV8ko6jnvXYtJhLlNvB1uc0QLO/aYsQX40deBk=";
|
2021-02-20 03:40:43 +01:00
|
|
|
|
2021-05-16 21:36:23 +02:00
|
|
|
buildInputs = lib.optional stdenv.isDarwin libiconv;
|
|
|
|
|
2021-02-20 03:40:43 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|