nagios: add passthru.updateScript

This commit is contained in:
Anthony Roussel 2023-11-07 11:57:56 +01:00 committed by Jonathan Ringer
parent 970efe216b
commit 2a3cea1658

View File

@ -8,6 +8,7 @@
, zlib
, unzip
, nixosTests
, nix-update-script
}:
stdenv.mkDerivation rec {
@ -45,8 +46,13 @@ stdenv.mkDerivation rec {
sed -i 's@/bin/@@g' $out/etc/objects/commands.cfg
'';
passthru.tests = {
inherit (nixosTests) nagios;
passthru = {
tests = {
inherit (nixosTests) nagios;
};
updateScript = nix-update-script {
extraArgs = [ "--version-regex" "nagios-(.*)" ];
};
};
meta = {