git.iko.soy/typeable/nixpkgs
on master help sign in
mqtt-bench: init at 0.3.0
commitf8ad84ad23a98153da1af729146301795312d187 authorSamuel Leathers <sam@appliedtrust.com> dateWed 20 Sep 2017, 12:37 (9 years ago) parentf170dbe
3 files changed+55
pkgs/applications/misc/mqtt-bench/default.nix+32 pkgs/applications/misc/mqtt-bench/deps.nix+21 pkgs/top-level/all-packages.nix+2
pkgs/applications/misc/mqtt-bench/default.nixnew file+32
@@ -0,0 +1,32 @@
1+{ stdenv, buildGoPackage, fetchFromGitHub, fetchpatch }:
2+
3+buildGoPackage rec {
4+ name = "mqtt-bench-${version}";
5+ version = "0.3.0";
6+ rev = "v${version}";
7+
8+ goPackagePath = "github.com/takanorig/mqtt-bench";
9+
10+ src = fetchFromGitHub {
11+ inherit rev;
12+ owner = "takanorig";
13+ repo = "mqtt-bench";
14+ sha256 = "03b9ak2j303iwq6abd7j10f2cs2ianwnbflwmyx9g96i7zd74f5m";
15+ };
16+
17+ patches = [
18+ (fetchpatch {
19+ url = "https://patch-diff.githubusercontent.com/raw/takanorig/mqtt-bench/pull/13.patch";
20+ name = "mqtt-paho-changes.patch";
21+ sha256 = "17c8ajrp5dmbsasj6njxrlhy0x08b65fignzm3yccqbhb4ijcvha";
22+ })
23+ ];
24+
25+ goDeps = ./deps.nix;
26+
27+ meta = with stdenv.lib; {
28+ description = "Mosquitto benchmark tool";
29+ homepage = https://github.com/takanorig/mqtt-bench;
30+ maintainers = with maintainers; [ disassembler ];
31+ };
32+}
pkgs/applications/misc/mqtt-bench/deps.nixnew file+21
@@ -0,0 +1,21 @@
1+# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
2+[
3+ {
4+ goPackagePath = "github.com/eclipse/paho.mqtt.golang";
5+ fetch = {
6+ type = "git";
7+ url = "https://github.com/eclipse/paho.mqtt.golang";
8+ rev = "65f43bda5f7edbbf6b7533d3a5a13b2c67cf3545";
9+ sha256 = "1ad136xf78br599ya43j45f8dycjip1k0hkplayy1slg8ckwrhdr";
10+ };
11+ }
12+ {
13+ goPackagePath = "golang.org/x/net";
14+ fetch = {
15+ type = "git";
16+ url = "https://go.googlesource.com/net";
17+ rev = "8351a756f30f1297fe94bbf4b767ec589c6ea6d0";
18+ sha256 = "0b6m579i3wrx1m69mqkdng5gjfssprxx0pg45kzrdi68sh0zr5d1";
19+ };
20+ }
21+]
pkgs/top-level/all-packages.nix+2
@@ -9733,6 +9733,8 @@ with pkgs;
97339733
97349734 mpeg2dec = libmpeg2;
97359735
9736+ mqtt-bench = callPackage ../applications/misc/mqtt-bench {};
9737+
97369738 msilbc = callPackage ../development/libraries/msilbc { };
97379739
97389740 mp4v2 = callPackage ../development/libraries/mp4v2 { };