diff options
| author | Otavio Salvador <otavio@ossystems.com.br> | 2023-05-02 14:33:35 -0300 |
|---|---|---|
| committer | github-actions[bot] <github-actions[bot]@users.noreply.github.com> | 2023-05-02 23:22:37 +0000 |
| commit | 537210d20e2217ef61a99ddb1bac8fe49a7f81cf (patch) | |
| tree | 99b1cb6a939d733f26358a884a1713d8028b33e3 | |
| parent | shellhub-agent: 0.11.7 -> 0.11.8 (diff) | |
| download | nixpkgs-origin/backport-229507-to-release-22.11.tar.gz | |
shellhub-agent: add tests.version for checking if version matchesorigin/backport-229507-to-release-22.11
Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
(cherry picked from commit 28b07a359bed825b96aa0e9aa6c97e5747682b47)
| -rw-r--r-- | pkgs/applications/networking/shellhub-agent/default.nix | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/applications/networking/shellhub-agent/default.nix b/pkgs/applications/networking/shellhub-agent/default.nix index 90dca7c9f716..3e3a5eee5f89 100644 --- a/pkgs/applications/networking/shellhub-agent/default.nix +++ b/pkgs/applications/networking/shellhub-agent/default.nix @@ -5,6 +5,8 @@ , makeWrapper , openssh , libxcrypt +, testers +, shellhub-agent }: buildGo120Module rec { @@ -29,6 +31,12 @@ buildGo120Module rec { rev-prefix = "v"; ignoredVersions = ".(rc|beta).*"; }; + + tests.version = testers.testVersion { + package = shellhub-agent; + command = "agent --version"; + version = "v${version}"; + }; }; nativeBuildInputs = [ makeWrapper ]; |
