summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--pkgs/tools/networking/mqtt-benchmark/default.nix26
-rw-r--r--pkgs/top-level/all-packages.nix2
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/tools/networking/mqtt-benchmark/default.nix b/pkgs/tools/networking/mqtt-benchmark/default.nix
new file mode 100644
index 0000000000000..a2ab1b61520e8
--- /dev/null
+++ b/pkgs/tools/networking/mqtt-benchmark/default.nix
@@ -0,0 +1,26 @@
+{ lib
+, buildGoModule
+, fetchFromGitHub
+}:
+
+buildGoModule rec {
+  pname = "mqtt-benchmark";
+  version = "0.2.0";
+
+  src = fetchFromGitHub {
+    owner = "krylovsk";
+    repo = pname;
+    rev = "refs/tags/v${version}";
+    hash = "sha256-gejLDtJ1geO4eDBapHjXgpc+M2TRGKcv5YzybmIyQSs=";
+  };
+
+  vendorHash = "sha256-ZN5tNDIisbhMMOA2bVJnE96GPdZ54HXTneFQewwJmHI=";
+
+  meta = with lib; {
+    description = "MQTT broker benchmarking tool";
+    homepage = "https://github.com/krylovsk/mqtt-benchmark";
+    changelog = "https://github.com/krylovsk/mqtt-benchmark/releases/tag/v${version}";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ fab ];
+  };
+}
diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix
index 698edfa6b86ef..4d531873163d8 100644
--- a/pkgs/top-level/all-packages.nix
+++ b/pkgs/top-level/all-packages.nix
@@ -22315,6 +22315,8 @@ with pkgs;
 
   mpeg2dec = libmpeg2;
 
+  mqtt-benchmark = callPackage ../tools/networking/mqtt-benchmark { };
+
   mqttui = callPackage ../tools/networking/mqttui {
     inherit (darwin.apple_sdk.frameworks) Security;
   };