diff options
author | Emery Hemingway <ehmry@posteo.net> | 2023-10-31 15:45:10 +0000 |
---|---|---|
committer | Emery Hemingway <ehmry@posteo.net> | 2023-11-28 16:48:10 +0200 |
commit | ee21b61658dd195be61e93b0937ad65d6e41fb6a (patch) | |
tree | d02a45646f8a2e26c895d5e2481e1fd4bcebdc3f /pkgs/by-name/tt/ttop/package.nix | |
parent | 35f108c7d7742fc9119a03783f40dd44cf7f6251 (diff) |
ttop: build with lockfile
Diffstat (limited to 'pkgs/by-name/tt/ttop/package.nix')
-rw-r--r-- | pkgs/by-name/tt/ttop/package.nix | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/pkgs/by-name/tt/ttop/package.nix b/pkgs/by-name/tt/ttop/package.nix new file mode 100644 index 0000000000000..97db97e33d44b --- /dev/null +++ b/pkgs/by-name/tt/ttop/package.nix @@ -0,0 +1,35 @@ +{ lib, buildNimPackage, fetchFromGitHub, testers }: + +buildNimPackage (finalAttrs: { + pname = "ttop"; + version = "1.2.7"; + + src = fetchFromGitHub { + owner = "inv2004"; + repo = "ttop"; + rev = "v${finalAttrs.version}"; + hash = "sha256-oPdaUqh6eN1X5kAYVvevOndkB/xnQng9QVLX9bu5P5E="; + }; + + lockFile = ./lock.json; + + 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 ]; + mainProgram = "ttop"; + }; +}) |