2023-10-09 19:29:22 +00:00
|
|
|
{ lib, nimPackages, fetchFromGitHub, testers }:
|
2023-03-08 16:32:21 +00:00
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
nimPackages.buildNimPackage (finalAttrs: {
|
2023-03-08 16:32:21 +00:00
|
|
|
pname = "ttop";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "1.2.5";
|
2023-03-08 16:32:21 +00:00
|
|
|
nimBinOnly = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inv2004";
|
|
|
|
repo = "ttop";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-GMGGkpBX+pmZ+TSDRs2N3H4Bwa3oXSDo9vM192js7Ww=";
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
buildInputs = with nimPackages; [ asciigraph illwill jsony parsetoml zippy ];
|
2023-03-08 16:32:21 +00:00
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nimFlags = [
|
|
|
|
"-d:NimblePkgVersion=${finalAttrs.version}"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.tests = {
|
|
|
|
version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
2023-03-08 16:32:21 +00:00
|
|
|
};
|
2023-10-09 19:29:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Top-like system monitoring tool";
|
|
|
|
homepage = "https://github.com/inv2004/ttop";
|
|
|
|
changelog = "https://github.com/inv2004/ttop/releases/tag/${finalAttrs.src.rev}";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ figsoda sikmir ];
|
|
|
|
};
|
2023-07-15 17:15:38 +00:00
|
|
|
})
|