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

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

29 lines
698 B
Nix
Raw Normal View History

2023-03-05 11:35:09 +00:00
{ lib, nimPackages, fetchFromGitHub }:
nimPackages.buildNimPackage (finalAttrs: {
2023-03-05 11:35:09 +00:00
pname = "ttop";
2023-09-02 12:38:28 +01:00
version = "1.2.0";
2023-03-05 11:35:09 +00:00
nimBinOnly = true;
src = fetchFromGitHub {
owner = "inv2004";
repo = "ttop";
rev = "v${finalAttrs.version}";
2023-09-02 12:38:28 +01:00
hash = "sha256-4Tjf4Qdpiu0ErH3dkff4cwYyw/8F8+VdFV9NZt8p/3o=";
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-03-05 11:35:09 +00:00
meta = with lib;
finalAttrs.src.meta // {
2023-03-05 11:35:09 +00:00
description = "Top-like system monitoring tool";
license = licenses.mit;
platforms = platforms.linux;
maintainers = with maintainers; [ sikmir ];
};
})