ttop: add version test

This commit is contained in:
figsoda 2023-09-02 10:09:48 -04:00
parent 85159d323a
commit e953f0b02e

View File

@ -1,4 +1,4 @@
{ lib, nimPackages, fetchFromGitHub }:
{ lib, nimPackages, fetchFromGitHub, testers }:
nimPackages.buildNimPackage (finalAttrs: {
pname = "ttop";
@ -18,6 +18,12 @@ nimPackages.buildNimPackage (finalAttrs: {
"-d:NimblePkgVersion=${finalAttrs.version}"
];
passthru.tests = {
version = testers.testVersion {
package = finalAttrs.finalPackage;
};
};
meta = with lib;
finalAttrs.src.meta // {
description = "Top-like system monitoring tool";