mynewt-newtmgr: add testers.testVersion

This commit is contained in:
bezmuth 2022-09-18 20:28:58 +01:00
parent 584e438e66
commit 83f68ad36e

View File

@ -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";