summary refs log tree commit diff
path: root/pkgs/tools/system
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2023-09-02 23:54:45 -0400
committerGitHub <noreply@github.com>2023-09-02 23:54:45 -0400
commita48ce1b713124059d46de399bb3280a9d7e22f40 (patch)
tree937fb97ad627b539c76272834a097a76f33c0f0d /pkgs/tools/system
parent834af2fde59524b307544f36d9e04ccbb2e02fec (diff)
parentb123db8d742d0e3ddb2dc6bb9d6eb2dcfd3169b9 (diff)
Merge pull request #252944 from figsoda/ttop
Diffstat (limited to 'pkgs/tools/system')
-rw-r--r--pkgs/tools/system/ttop/default.nix25
1 files changed, 18 insertions, 7 deletions
diff --git a/pkgs/tools/system/ttop/default.nix b/pkgs/tools/system/ttop/default.nix
index 20b28fa7dd0ca..67edfe27274dc 100644
--- a/pkgs/tools/system/ttop/default.nix
+++ b/pkgs/tools/system/ttop/default.nix
@@ -1,4 +1,4 @@
-{ lib, nimPackages, fetchFromGitHub }:
+{ lib, nimPackages, fetchFromGitHub, testers }:
 
 nimPackages.buildNimPackage (finalAttrs: {
   pname = "ttop";
@@ -14,11 +14,22 @@ nimPackages.buildNimPackage (finalAttrs: {
 
   buildInputs = with nimPackages; [ asciigraph illwill jsony parsetoml zippy ];
 
-  meta = with lib;
-    finalAttrs.src.meta // {
-      description = "Top-like system monitoring tool";
-      license = licenses.mit;
-      platforms = platforms.linux;
-      maintainers = with maintainers; [ sikmir ];
+  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 ];
+  };
 })