From 83f68ad36e2066f3c5b410ec76f4779cf4835882 Mon Sep 17 00:00:00 2001 From: bezmuth Date: Sun, 18 Sep 2022 20:28:58 +0100 Subject: [PATCH] mynewt-newtmgr: add testers.testVersion --- pkgs/tools/misc/mynewt-newtmgr/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/pkgs/tools/misc/mynewt-newtmgr/default.nix b/pkgs/tools/misc/mynewt-newtmgr/default.nix index aa0090373b10..afc038e96382 100644 --- a/pkgs/tools/misc/mynewt-newtmgr/default.nix +++ b/pkgs/tools/misc/mynewt-newtmgr/default.nix @@ -2,6 +2,8 @@ , buildGoModule , fetchFromGitHub , stdenv +, testers +, mynewt-newtmgr }: buildGoModule rec { @@ -17,6 +19,11 @@ buildGoModule rec { vendorSha256 = "sha256-+vOZoueoMqlGnopLKc6pCgTmcgI34pxaMNbr6Y+JCfQ="; + passthru.tests.version = testers.testVersion { + package = mynewt-newtmgr; + command = "newtmgr version"; + }; + meta = with lib; { homepage = "https://mynewt.apache.org/"; description = "Tool to communicate with devices running Mynewt OS";