about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorBjørn Forsman <bjorn.forsman@gmail.com>2022-12-30 00:09:44 +0100
committerBjørn Forsman <bjorn.forsman@gmail.com>2023-01-04 21:45:58 +0100
commite320029847a89320aa7600b57c29c1c8985717bc (patch)
tree2ab52ed3d87fafd3d9c93db312b7f7d26c36daee /pkgs
parent1b80fc420475319a7f518a130a649fb37146e22f (diff)
apcupsd: add nixosTests.apcupsd to passthru.tests
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/servers/apcupsd/default.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/servers/apcupsd/default.nix b/pkgs/servers/apcupsd/default.nix
index 9e5e81457e905..aff8bba91a7f5 100644
--- a/pkgs/servers/apcupsd/default.nix
+++ b/pkgs/servers/apcupsd/default.nix
@@ -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/";