nixpkgs/pkgs/by-name/tt/ttop/package.nix

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

36 lines
868 B
Nix
Raw Normal View History

2023-10-31 15:45:10 +00:00
{ lib, buildNimPackage, fetchFromGitHub, testers }:
2023-03-05 11:35:09 +00:00
2023-10-31 15:45:10 +00:00
buildNimPackage (finalAttrs: {
2023-03-05 11:35:09 +00:00
pname = "ttop";
2023-12-13 22:40:56 +00:00
version = "1.2.8";
2023-03-05 11:35:09 +00:00
src = fetchFromGitHub {
owner = "inv2004";
repo = "ttop";
rev = "v${finalAttrs.version}";
2023-12-13 22:40:56 +00:00
hash = "sha256-QMUrA3OjxlDa1OxptJL7T3SPDTzSwVz6zz+ueh9eovM=";
2023-03-05 11:35:09 +00:00
};
2023-10-31 15:45:10 +00:00
lockFile = ./lock.json;
2023-03-05 11:35:09 +00:00
2023-09-02 14:09:09 +00:00
nimFlags = [
"-d:NimblePkgVersion=${finalAttrs.version}"
];
2023-09-02 14:09:48 +00: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";
};
})