hwinfo: add version test

This commit is contained in:
Bob van der Linden
2024-08-21 22:38:35 +02:00
committed by Bjørn Forsman
parent 2e5d7834d3
commit 1d42ebe5d5
+5
View File
@@ -8,6 +8,7 @@
perl,
kmod,
systemdMinimal,
testers,
}:
stdenv.mkDerivation (finalAttrs: {
@@ -60,6 +61,10 @@ stdenv.mkDerivation (finalAttrs: {
installFlags = [ "DESTDIR=$(out)" ];
passthru.tests = {
version = testers.testVersion { package = finalAttrs.finalPackage; };
};
meta = with lib; {
description = "Hardware detection tool from openSUSE";
license = licenses.gpl2Only;