nixpkgs/pkgs/tools/system/ttop/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
951 B
Nix
Raw Normal View History

2023-09-02 15:09:48 +01:00
{ lib, nimPackages, fetchFromGitHub, testers }:
2023-03-05 11:35:09 +00:00
nimPackages.buildNimPackage (finalAttrs: {
2023-03-05 11:35:09 +00:00
pname = "ttop";
2023-11-01 10:34:40 +00:00
version = "1.2.7";
2023-03-05 11:35:09 +00:00
nimBinOnly = true;
src = fetchFromGitHub {
owner = "inv2004";
repo = "ttop";
rev = "v${finalAttrs.version}";
2023-11-01 10:34:40 +00:00
hash = "sha256-oPdaUqh6eN1X5kAYVvevOndkB/xnQng9QVLX9bu5P5E=";
2023-03-05 11:35:09 +00:00
};
2023-09-02 12:38:28 +01:00
buildInputs = with nimPackages; [ asciigraph illwill jsony parsetoml zippy ];
2023-03-05 11:35:09 +00:00
2023-09-02 15:09:09 +01:00
nimFlags = [
"-d:NimblePkgVersion=${finalAttrs.version}"
];
2023-09-02 15:09:48 +01:00
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 ];
2023-11-27 01:17:53 +00:00
mainProgram = "ttop";
};
})