apcupsd: add nixosTests.apcupsd to passthru.tests

This commit is contained in:
Bjørn Forsman 2022-12-30 00:09:44 +01:00
parent 1b80fc4204
commit e320029847

View file

@ -1,5 +1,6 @@
{ lib, stdenv, fetchurl, pkg-config, systemd, util-linux, coreutils, wall, hostname, man
, enableCgiScripts ? true, gd
, nixosTests
}:
assert enableCgiScripts -> gd != null;
@ -52,6 +53,8 @@ stdenv.mkDerivation rec {
done
'';
passthru.tests.smoke = nixosTests.apcupsd;
meta = with lib; {
description = "Daemon for controlling APC UPSes";
homepage = "http://www.apcupsd.com/";