3
0
Fork 0
forked from mirrors/nixpkgs

fastnetmon-advanced: add install checks

This commit is contained in:
Yureka 2023-05-02 15:33:04 +02:00
parent 82ab4e7314
commit 36dcc2b00f

View file

@ -43,6 +43,13 @@ stdenv.mkDerivation rec {
addAutoPatchelfSearchPath $out/libexec/fastnetmon/libraries
'';
doInstallCheck = true;
installCheckPhase = ''
set +o pipefail
$out/bin/fastnetmon 2>&1 | grep "Can't open log file"
$out/bin/fcli 2>&1 | grep "Please run this tool with root rights"
'';
meta = with lib; {
description = "A high performance DDoS detector / sensor - commercial edition";
homepage = "https://fastnetmon.com";