mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-03 03:23:17 +00:00
65373919b7
Diff: https://github.com/inv2004/ttop/compare/v1.2.1...v1.2.2 Changelog: https://github.com/inv2004/ttop/releases/tag/v1.2.2
36 lines
925 B
Nix
36 lines
925 B
Nix
{ lib, nimPackages, fetchFromGitHub, testers }:
|
|
|
|
nimPackages.buildNimPackage (finalAttrs: {
|
|
pname = "ttop";
|
|
version = "1.2.2";
|
|
nimBinOnly = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "inv2004";
|
|
repo = "ttop";
|
|
rev = "v${finalAttrs.version}";
|
|
hash = "sha256-sXhyDIQ2gaQhy3EF4Kex2XgE3RvTJyu/iY8e66N4ZJk=";
|
|
};
|
|
|
|
buildInputs = with nimPackages; [ asciigraph illwill jsony parsetoml zippy ];
|
|
|
|
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 ];
|
|
};
|
|
})
|