diff --git a/pkgs/development/tools/bearer/default.nix b/pkgs/development/tools/bearer/default.nix index 347ac1329161..f5214d3aa060 100644 --- a/pkgs/development/tools/bearer/default.nix +++ b/pkgs/development/tools/bearer/default.nix @@ -1,6 +1,8 @@ { lib , buildGoModule , fetchFromGitHub +, testers +, bearer }: buildGoModule rec { @@ -26,6 +28,13 @@ buildGoModule rec { "-X=github.com/bearer/bearer/cmd/bearer/build.Version=${version}" ]; + passthru.tests = { + version = testers.testVersion { + package = bearer; + command = "bearer version"; + }; + }; + meta = with lib; { description = "Code security scanning tool (SAST) to discover, filter and prioritize security and privacy risks"; homepage = "https://github.com/bearer/bearer";