From 897a46dd297b727911c8e0acc8f297de6ae20a3f Mon Sep 17 00:00:00 2001 From: Arnout Engelen Date: Sat, 11 Mar 2023 12:11:26 +0100 Subject: [PATCH] opensnitch: basic version test --- pkgs/tools/networking/opensnitch/daemon.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/tools/networking/opensnitch/daemon.nix b/pkgs/tools/networking/opensnitch/daemon.nix index 94a4c0661c9..3390776a17a 100644 --- a/pkgs/tools/networking/opensnitch/daemon.nix +++ b/pkgs/tools/networking/opensnitch/daemon.nix @@ -11,6 +11,8 @@ , iptables , makeWrapper , protoc-gen-go-grpc +, testers +, opensnitch }: buildGoModule rec { @@ -70,6 +72,11 @@ buildGoModule rec { --prefix PATH : ${lib.makeBinPath [ iptables ]} ''; + passthru.tests.version = testers.testVersion { + package = opensnitch; + command = "opensnitchd -version"; + }; + meta = with lib; { description = "An application firewall"; homepage = "https://github.com/evilsocket/opensnitch/wiki";