From d4be94cb82a9a722000f656d868bebf3f5877d63 Mon Sep 17 00:00:00 2001 From: psondej Date: Thu, 10 Nov 2022 04:31:34 +0100 Subject: [PATCH] kics: add version test --- pkgs/tools/admin/kics/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/admin/kics/default.nix b/pkgs/tools/admin/kics/default.nix index ef3239355f09..8c8000168d5c 100644 --- a/pkgs/tools/admin/kics/default.nix +++ b/pkgs/tools/admin/kics/default.nix @@ -1,4 +1,10 @@ -{ stdenv, buildGoModule, fetchFromGitHub, lib }: +{ stdenv +, buildGoModule +, fetchFromGitHub +, lib +, testers +, kics +}: buildGoModule rec { pname = "kics"; @@ -25,6 +31,11 @@ buildGoModule rec { "-X github.com/Checkmarx/kics/internal/constants.Version=${version}" ]; + passthru.tests.version = testers.testVersion { + package = kics; + command = "kics version"; + }; + meta = with lib; { description = '' Find security vulnerabilities, compliance issues, and infrastructure misconfigurations early in the development