nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit fc699ac5afbb302ebbbe35702da2334e045e4af9
parent 3cafcc1cd9b20f876fd0abc63d47ca18228baf91
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date:   Sat, 28 Oct 2023 16:46:56 +0400

Add mqtt-shell

Diffstat:
Mpkgs/default.nix | 1+
Apkgs/mqtt/mqtt-shell/default.nix | 26++++++++++++++++++++++++++
2 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -411,6 +411,7 @@ lib.makeScope newScope ( mqtt-cli = callPackage ./mqtt/mqtt-cli { }; mqtt-explorer = callPackage ./mqtt/mqtt-explorer { }; mqtt-proxy = callPackage ./mqtt/mqtt-proxy { }; + mqtt-shell = callPackage ./mqtt/mqtt-shell { }; mqtt-to-influxdb = callPackage ./mqtt/mqtt-to-influxdb { }; mqtt-to-influxdb-forwarder = callPackage ./mqtt/mqtt-to-influxdb-forwarder { }; nanosdk = callPackage ./mqtt/nanosdk { }; diff --git a/pkgs/mqtt/mqtt-shell/default.nix b/pkgs/mqtt/mqtt-shell/default.nix @@ -0,0 +1,26 @@ +{ stdenv, lib, fetchFromGitHub, buildGoModule }: + +buildGoModule rec { + pname = "mqtt-shell"; + version = "2.3.0"; + + src = fetchFromGitHub { + owner = "rainu"; + repo = "mqtt-shell"; + rev = "v${version}"; + hash = "sha256-nyNNdlNC5AWJ9jTnBggUf4OVME3OPXWd1MAj2pWwQL4="; + }; + + vendorHash = "sha256-kC/APQjdKPjV7ap/2QONX1Y/glqbElNiXsa2uzRLIm8="; + + ldflags = [ "-X main.ApplicationVersion=${version}" ]; + + doCheck = false; + + meta = with lib; { + description = "A interactive shell-like command line interface (CLI) for MQTT"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + }; +}