{ lib, nimPackages, fetchFromGitHub, testers }: nimPackages.buildNimPackage (finalAttrs: { pname = "ttop"; version = "1.2.4"; nimBinOnly = true; src = fetchFromGitHub { owner = "inv2004"; repo = "ttop"; rev = "v${finalAttrs.version}"; hash = "sha256-kOYgqFKZ0TC54o6tQaxGA1i12sU8Mg9bEwbGoZiBZ0Y="; }; 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 ]; }; })