about summary refs log tree commit diff
path: root/pkgs/tools/system/btop
diff options
context:
space:
mode:
authorAustin Horstman <khaneliman12@gmail.com>2023-09-18 14:58:14 -0500
committerGitHub <noreply@github.com>2023-09-18 22:58:14 +0300
commitad07cd4fc2e37cdeca8f6b920f4d955fa280f595 (patch)
tree08ec710fe945cce33e59770b5b6d221bfe45dce8 /pkgs/tools/system/btop
parentba26780794642b18e46f255dd709e7a0c3704c08 (diff)
treewide: add version tests (#255781)
Diffstat (limited to 'pkgs/tools/system/btop')
-rw-r--r--pkgs/tools/system/btop/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/tools/system/btop/default.nix b/pkgs/tools/system/btop/default.nix
index b74089ae0a9a7..a4a5156525dd2 100644
--- a/pkgs/tools/system/btop/default.nix
+++ b/pkgs/tools/system/btop/default.nix
@@ -3,6 +3,8 @@
 , fetchFromGitHub
 , darwin
 , removeReferencesTo
+, btop
+, testers
 }:
 
 stdenv.mkDerivation rec {
@@ -30,6 +32,10 @@ stdenv.mkDerivation rec {
     ${removeReferencesTo}/bin/remove-references-to -t ${stdenv.cc.cc} $(readlink -f $out/bin/btop)
   '';
 
+  passthru.tests.version = testers.testVersion {
+    package = btop;
+  };
+
   meta = with lib; {
     description = "A monitor of resources";
     homepage = "https://github.com/aristocratos/btop";