commit 1a601960aac85493c2b5f8fb61bac40465b20747
parent cbc139538502ece9170f300b1d57aed091b41a23
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Mon, 28 Nov 2022 00:46:48 +0300
Add go-mqtt-to-influxdb
Diffstat:
2 files changed, 25 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -344,6 +344,7 @@ lib.makeScope newScope (
### MQTT
+ go-mqtt-to-influxdb = callPackage ./mqtt/go-mqtt-to-influxdb { };
influxdb-cxx = callPackage ./mqtt/influxdb-cxx { };
janus-mqtt-proxy = callPackage ./mqtt/janus-mqtt-proxy { };
mongoose = callPackage ./mqtt/mongoose { };
diff --git a/pkgs/mqtt/go-mqtt-to-influxdb/default.nix b/pkgs/mqtt/go-mqtt-to-influxdb/default.nix
@@ -0,0 +1,24 @@
+{ stdenv, lib, fetchFromGitHub, buildGoModule }:
+
+buildGoModule rec {
+ pname = "go-mqtt-to-influxdb";
+ version = "0.0.7";
+
+ src = fetchFromGitHub {
+ owner = "elgohr";
+ repo = "mqtt-to-influxdb";
+ rev = "v${version}";
+ hash = "sha256-wO/TS+J68UvnadeMqm3xzZ/qv7gitW3Hi84v32UlZKI=";
+ };
+
+ vendorHash = null;
+ doCheck = false;
+
+ meta = with lib; {
+ description = "Bridge to write MQTT to InfluxDB";
+ inherit (src.meta) homepage;
+ license = licenses.mit;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}