summary refs log tree commit diff
path: root/pkgs/tools/misc/mynewt-newtmgr
diff options
context:
space:
mode:
authorbezmuth <benkel97@protonmail.com>2022-09-18 20:28:58 +0100
committerbezmuth <benkel97@protonmail.com>2022-09-18 20:28:58 +0100
commit83f68ad36e2066f3c5b410ec76f4779cf4835882 (patch)
tree8ba2c29ae4964f645cbefdfcab1eb4a5de09c9d0 /pkgs/tools/misc/mynewt-newtmgr
parent584e438e66a56bc38dfda20419cd24af18b3eb66 (diff)
downloadnixpkgs-83f68ad36e2066f3c5b410ec76f4779cf4835882.tar
nixpkgs-83f68ad36e2066f3c5b410ec76f4779cf4835882.tar.gz
nixpkgs-83f68ad36e2066f3c5b410ec76f4779cf4835882.tar.bz2
nixpkgs-83f68ad36e2066f3c5b410ec76f4779cf4835882.tar.lz
nixpkgs-83f68ad36e2066f3c5b410ec76f4779cf4835882.tar.xz
nixpkgs-83f68ad36e2066f3c5b410ec76f4779cf4835882.tar.zst
nixpkgs-83f68ad36e2066f3c5b410ec76f4779cf4835882.zip
mynewt-newtmgr: add testers.testVersion
Diffstat (limited to 'pkgs/tools/misc/mynewt-newtmgr')
-rw-r--r--pkgs/tools/misc/mynewt-newtmgr/default.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/tools/misc/mynewt-newtmgr/default.nix b/pkgs/tools/misc/mynewt-newtmgr/default.nix
index aa0090373b1..afc038e9638 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";