summary refs log tree commit diff
path: root/pkgs/applications/misc/mqtt-bench
diff options
context:
space:
mode:
authorSamuel Leathers <sam@appliedtrust.com>2017-09-20 12:37:19 -0400
committerSamuel Leathers <sam@appliedtrust.com>2017-09-20 12:37:19 -0400
commitf8ad84ad23a98153da1af729146301795312d187 (patch)
treea9896e945aa2016c20ce33669a8a7637eaa18620 /pkgs/applications/misc/mqtt-bench
parentf170dbe16f70a83de49a07e2291e0ab30f806104 (diff)
downloadnixpkgs-f8ad84ad23a98153da1af729146301795312d187.tar
nixpkgs-f8ad84ad23a98153da1af729146301795312d187.tar.gz
nixpkgs-f8ad84ad23a98153da1af729146301795312d187.tar.bz2
nixpkgs-f8ad84ad23a98153da1af729146301795312d187.tar.lz
nixpkgs-f8ad84ad23a98153da1af729146301795312d187.tar.xz
nixpkgs-f8ad84ad23a98153da1af729146301795312d187.tar.zst
nixpkgs-f8ad84ad23a98153da1af729146301795312d187.zip
mqtt-bench: init at 0.3.0
Diffstat (limited to 'pkgs/applications/misc/mqtt-bench')
-rw-r--r--pkgs/applications/misc/mqtt-bench/default.nix32
-rw-r--r--pkgs/applications/misc/mqtt-bench/deps.nix21
2 files changed, 53 insertions, 0 deletions
diff --git a/pkgs/applications/misc/mqtt-bench/default.nix b/pkgs/applications/misc/mqtt-bench/default.nix
new file mode 100644
index 00000000000..eea166d8df7
--- /dev/null
+++ b/pkgs/applications/misc/mqtt-bench/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch }:
+
+buildGoPackage rec {
+  name = "mqtt-bench-${version}";
+  version = "0.3.0";
+  rev = "v${version}";
+
+  goPackagePath = "github.com/takanorig/mqtt-bench";
+
+  src = fetchFromGitHub {
+    inherit rev;
+    owner = "takanorig";
+    repo = "mqtt-bench";
+    sha256 = "03b9ak2j303iwq6abd7j10f2cs2ianwnbflwmyx9g96i7zd74f5m";
+  };
+
+  patches = [
+    (fetchpatch {
+      url = "https://patch-diff.githubusercontent.com/raw/takanorig/mqtt-bench/pull/13.patch";
+      name = "mqtt-paho-changes.patch";
+      sha256 = "17c8ajrp5dmbsasj6njxrlhy0x08b65fignzm3yccqbhb4ijcvha";
+    })
+  ];
+
+  goDeps = ./deps.nix;
+
+  meta = with stdenv.lib; {
+    description = "Mosquitto benchmark tool";
+    homepage = https://github.com/takanorig/mqtt-bench;
+    maintainers = with maintainers; [ disassembler ];
+  };
+}
diff --git a/pkgs/applications/misc/mqtt-bench/deps.nix b/pkgs/applications/misc/mqtt-bench/deps.nix
new file mode 100644
index 00000000000..d93d3c46814
--- /dev/null
+++ b/pkgs/applications/misc/mqtt-bench/deps.nix
@@ -0,0 +1,21 @@
+# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
+[
+  {
+    goPackagePath = "github.com/eclipse/paho.mqtt.golang";
+    fetch = {
+      type = "git";
+      url = "https://github.com/eclipse/paho.mqtt.golang";
+      rev = "65f43bda5f7edbbf6b7533d3a5a13b2c67cf3545";
+      sha256 = "1ad136xf78br599ya43j45f8dycjip1k0hkplayy1slg8ckwrhdr";
+    };
+  }
+  {
+    goPackagePath = "golang.org/x/net";
+    fetch = {
+      type = "git";
+      url = "https://go.googlesource.com/net";
+      rev = "8351a756f30f1297fe94bbf4b767ec589c6ea6d0";
+      sha256 = "0b6m579i3wrx1m69mqkdng5gjfssprxx0pg45kzrdi68sh0zr5d1";
+    };
+  }
+]