nixos/zoneminder: add minimal test

This commit is contained in:
Daniel Fullmer
2020-05-17 14:14:30 -04:00
parent e958afa0a9
commit 4f35b7ec5f
3 changed files with 30 additions and 3 deletions
+5 -2
View File
@@ -1,7 +1,7 @@
{ stdenv, lib, fetchFromGitHub, fetchurl, substituteAll, cmake, makeWrapper, pkgconfig
, curl, ffmpeg, glib, libjpeg, libselinux, libsepol, mp4v2, libmysqlclient, mysql, pcre, perl, perlPackages
, polkit, utillinuxMinimal, x264, zlib
, coreutils, procps, psmisc }:
, coreutils, procps, psmisc, nixosTests }:
# NOTES:
#
@@ -172,7 +172,10 @@ in stdenv.mkDerivation rec {
"-DZM_WEB_GROUP=${user}"
];
passthru = { inherit dirName; };
passthru = {
inherit dirName;
tests = nixosTests.zoneminder;
};
postInstall = ''
PERL5LIB="$PERL5LIB''${PERL5LIB:+:}$out/${perl.libPrefix}"