504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
35 lines
868 B
Nix
35 lines
868 B
Nix
{ lib, buildNimPackage, fetchFromGitHub, testers }:
|
|
|
|
buildNimPackage (finalAttrs: {
|
|
pname = "ttop";
|
|
version = "1.2.8";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "inv2004";
|
|
repo = "ttop";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-QMUrA3OjxlDa1OxptJL7T3SPDTzSwVz6zz+ueh9eovM=";
|
|
};
|
|
|
|
lockFile = ./lock.json;
|
|
|
|
nimFlags = [
|
|
"-d:NimblePkgVersion=${finalAttrs.version}"
|
|
];
|
|
|
|
passthru.tests = {
|
|
version = testers.testVersion {
|
|
package = finalAttrs.finalPackage;
|
|
};
|
|
};
|
|
|
|
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 ];
|
|
mainProgram = "ttop";
|
|
};
|
|
})
|