commit eaaf25fa7ff084364d0580145eb94f7187da7361
parent 4a7acba6c43a469283f5b68bf014dc9ae57423b7
Author: Nikolay Korotkiy <sikmir@disroot.org>
Date: Sun, 29 Jan 2023 13:44:50 +0300
Add rumqtt
Diffstat:
2 files changed, 29 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -358,6 +358,9 @@ lib.makeScope newScope (
mqtt-benchmark = callPackage ./mqtt/mqtt-benchmark { };
mqtt-to-influxdb = callPackage ./mqtt/mqtt-to-influxdb { };
mqtt-to-influxdb-forwarder = callPackage ./mqtt/mqtt-to-influxdb-forwarder { };
+ rumqtt = callPackage ./mqtt/rumqtt {
+ inherit (darwin.apple_sdk.frameworks) Security;
+ };
### NAKARTE
diff --git a/pkgs/mqtt/rumqtt/default.nix b/pkgs/mqtt/rumqtt/default.nix
@@ -0,0 +1,26 @@
+{ lib, stdenv, rustPlatform, fetchFromGitHub, cmake, Security }:
+
+rustPlatform.buildRustPackage rec {
+ pname = "rumqtt";
+ version = "0.12.3";
+
+ src = fetchFromGitHub {
+ owner = "bytebeamio";
+ repo = "rumqtt";
+ rev = "rumqttd-${version}";
+ hash = "sha256-dcTMfZFK5Jza+ewcBcsGmBN3yGAtao5DEU9poimulVo=";
+ };
+
+ cargoHash = "sha256-hpxjXLQY80G9c6uza2T2e8eG5MH9rEbCa/I1u2AbMt4=";
+
+ nativeBuildInputs = [ cmake ];
+
+ buildInputs = lib.optional stdenv.isDarwin Security;
+
+ meta = with lib; {
+ description = "The MQTT ecosystem in rust";
+ homepage = "https://github.com/bytebeamio/rumqtt";
+ license = licenses.asl20;
+ maintainers = [ maintainers.sikmir ];
+ };
+}