From 48947dded0eddf52f4cc1dbf687ad4c2c689b30c Mon Sep 17 00:00:00 2001 From: bezmuth Date: Wed, 14 Sep 2022 22:13:47 +0100 Subject: [PATCH 1/5] mynewt-newtmgr: init at 1.10.0 --- pkgs/tools/misc/mynewt-newtmgr/default.nix | 33 ++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 35 insertions(+) create mode 100644 pkgs/tools/misc/mynewt-newtmgr/default.nix diff --git a/pkgs/tools/misc/mynewt-newtmgr/default.nix b/pkgs/tools/misc/mynewt-newtmgr/default.nix new file mode 100644 index 00000000000..cc660094e8d --- /dev/null +++ b/pkgs/tools/misc/mynewt-newtmgr/default.nix @@ -0,0 +1,33 @@ +{ lib +, buildGoModule +, fetchFromGitHub +, stdenv +}: + +buildGoModule rec { + pname = "mynewt-newtmgr"; + version = "1.10.0"; + + src = fetchFromGitHub { + owner = "apache"; + repo = "mynewt-newtmgr"; + rev = "mynewt_${builtins.replaceStrings ["."] ["_"] version}_tag"; + sha256 = "sha256-fobaMkYLLK5qclogtClGdOjgTbmuse/72T3APNssYa4="; + }; + + vendorSha256 = "sha256-+vOZoueoMqlGnopLKc6pCgTmcgI34pxaMNbr6Y+JCfQ="; + + doCheck = false; + + meta = with lib; { + homepage = "https://mynewt.apache.org/"; + description = "Tool to communicate with devices running Mynewt OS"; + longDescription = '' + Newt Manager (newtmgr) is the application tool that enables a user to + communicate with and manage remote devices running the Mynewt OS + ''; + license = licenses.asl20; + maintainers = with maintainers; [ bezmuth ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c094df38748..b377c2e2952 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -35837,6 +35837,8 @@ with pkgs; mynewt-newt = callPackage ../tools/package-management/mynewt-newt { }; + mynewt-newtmgr = callPackage ../tools/misc/mynewt-newtmgr { }; + mysides = callPackage ../os-specific/darwin/mysides { }; nar-serve = callPackage ../tools/nix/nar-serve { }; From adb0296e6202db9a92d6515dbe1d5e473cb0e590 Mon Sep 17 00:00:00 2001 From: Ben Kelly <31394095+bezmuth@users.noreply.github.com> Date: Thu, 15 Sep 2022 14:18:58 +0100 Subject: [PATCH 2/5] mynewt-newtmgr: remove platform specification Co-authored-by: Nikolay Korotkiy --- pkgs/tools/misc/mynewt-newtmgr/default.nix | 1 - 1 file changed, 1 deletion(-) diff --git a/pkgs/tools/misc/mynewt-newtmgr/default.nix b/pkgs/tools/misc/mynewt-newtmgr/default.nix index cc660094e8d..671ac9c1b9b 100644 --- a/pkgs/tools/misc/mynewt-newtmgr/default.nix +++ b/pkgs/tools/misc/mynewt-newtmgr/default.nix @@ -28,6 +28,5 @@ buildGoModule rec { ''; license = licenses.asl20; maintainers = with maintainers; [ bezmuth ]; - platforms = platforms.unix; }; } From 584e438e66a56bc38dfda20419cd24af18b3eb66 Mon Sep 17 00:00:00 2001 From: bezmuth Date: Sat, 17 Sep 2022 22:53:14 +0100 Subject: [PATCH 3/5] mynewt-newtmgr: enable checks --- pkgs/tools/misc/mynewt-newtmgr/default.nix | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/pkgs/tools/misc/mynewt-newtmgr/default.nix b/pkgs/tools/misc/mynewt-newtmgr/default.nix index 671ac9c1b9b..aa0090373b1 100644 --- a/pkgs/tools/misc/mynewt-newtmgr/default.nix +++ b/pkgs/tools/misc/mynewt-newtmgr/default.nix @@ -17,16 +17,15 @@ buildGoModule rec { vendorSha256 = "sha256-+vOZoueoMqlGnopLKc6pCgTmcgI34pxaMNbr6Y+JCfQ="; - doCheck = false; - meta = with lib; { homepage = "https://mynewt.apache.org/"; description = "Tool to communicate with devices running Mynewt OS"; longDescription = '' - Newt Manager (newtmgr) is the application tool that enables a user to - communicate with and manage remote devices running the Mynewt OS + Newt Manager (newtmgr) is the application tool that enables a user to + communicate with and manage remote devices running the Mynewt OS ''; license = licenses.asl20; maintainers = with maintainers; [ bezmuth ]; + platforms = platforms.unix; }; } From 83f68ad36e2066f3c5b410ec76f4779cf4835882 Mon Sep 17 00:00:00 2001 From: bezmuth Date: Sun, 18 Sep 2022 20:28:58 +0100 Subject: [PATCH 4/5] 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 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"; From 4b3f728f6d6ccbc4669d645298fedbca28af6827 Mon Sep 17 00:00:00 2001 From: bezmuth Date: Tue, 20 Sep 2022 17:47:46 +0100 Subject: [PATCH 5/5] mynewt-newtmgr: update descriptions Also removed platform specification --- pkgs/tools/misc/mynewt-newtmgr/default.nix | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/pkgs/tools/misc/mynewt-newtmgr/default.nix b/pkgs/tools/misc/mynewt-newtmgr/default.nix index afc038e9638..987b17caa1b 100644 --- a/pkgs/tools/misc/mynewt-newtmgr/default.nix +++ b/pkgs/tools/misc/mynewt-newtmgr/default.nix @@ -28,11 +28,10 @@ buildGoModule rec { homepage = "https://mynewt.apache.org/"; description = "Tool to communicate with devices running Mynewt OS"; longDescription = '' - Newt Manager (newtmgr) is the application tool that enables a user to - communicate with and manage remote devices running the Mynewt OS + Newt Manager (newtmgr) an application that enables a user to communicate + with and manage remote devices running the Mynewt OS ''; license = licenses.asl20; maintainers = with maintainers; [ bezmuth ]; - platforms = platforms.unix; }; }