2023-10-31 16:45:10 +01:00
|
|
|
{ lib, buildNimPackage, fetchFromGitHub, testers }:
|
2023-03-05 12:35:09 +01:00
|
|
|
|
2023-10-31 16:45:10 +01:00
|
|
|
buildNimPackage (finalAttrs: {
|
2023-03-05 12:35:09 +01:00
|
|
|
pname = "ttop";
|
2023-12-13 23:40:56 +01:00
|
|
|
version = "1.2.8";
|
2023-03-05 12:35:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "inv2004";
|
|
|
|
repo = "ttop";
|
2023-06-14 11:43:26 +02:00
|
|
|
rev = "v${finalAttrs.version}";
|
2023-12-13 23:40:56 +01:00
|
|
|
hash = "sha256-QMUrA3OjxlDa1OxptJL7T3SPDTzSwVz6zz+ueh9eovM=";
|
2023-03-05 12:35:09 +01:00
|
|
|
};
|
|
|
|
|
2023-10-31 16:45:10 +01:00
|
|
|
lockFile = ./lock.json;
|
2023-03-05 12:35:09 +01:00
|
|
|
|
2023-09-02 16:09:09 +02:00
|
|
|
nimFlags = [
|
|
|
|
"-d:NimblePkgVersion=${finalAttrs.version}"
|
|
|
|
];
|
|
|
|
|
2023-09-02 16:09:48 +02:00
|
|
|
passthru.tests = {
|
|
|
|
version = testers.testVersion {
|
|
|
|
package = finalAttrs.finalPackage;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-09-02 16:10:38 +02: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-11-27 02:17:53 +01:00
|
|
|
mainProgram = "ttop";
|
2023-09-02 16:10:38 +02:00
|
|
|
};
|
2023-06-14 11:43:26 +02:00
|
|
|
})
|