7c33fab397
Add https://github.com/fedexist/grafatui as a package to this flake for use as a terminal-based metrics dashboard. Simply structure of the packages directory at the same time.
28 lines
630 B
Nix
28 lines
630 B
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
rustPlatform,
|
|
}:
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "grafatui";
|
|
version = "0.1.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fedexist";
|
|
repo = "grafatui";
|
|
rev = "v${version}";
|
|
hash = "sha256-T6PS2RMuVoR35ealX+1KsJW2UbA+suj2YjIBdnSsIU8=";
|
|
};
|
|
|
|
cargoLock.lockFile = "${src}/Cargo.lock";
|
|
|
|
meta = {
|
|
description = "Grafana-like TUI for Prometheus";
|
|
homepage = "https://github.com/fedexist/grafatui";
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "grafatui";
|
|
platforms = lib.platforms.linux;
|
|
sourceProvenance = with lib.sourceTypes; [ fromSource ];
|
|
};
|
|
}
|