summary refs log tree commit diff
path: root/pkgs/servers/mqtt
diff options
context:
space:
mode:
authorSuvash Thapaliya <suvash@gmail.com>2015-02-19 23:53:44 +0100
committerSuvash Thapaliya <suvash@gmail.com>2015-02-21 11:38:51 +0100
commit81588746aa2462a497e7cd23138d6aa9dfc96e08 (patch)
treeaf52f95f5902c40bea9af73f4aad991cd8df3dce /pkgs/servers/mqtt
parent18ec13d9d2c9c10f9fc9370cb384d5750f8ccf8b (diff)
downloadnixlib-81588746aa2462a497e7cd23138d6aa9dfc96e08.tar
nixlib-81588746aa2462a497e7cd23138d6aa9dfc96e08.tar.gz
nixlib-81588746aa2462a497e7cd23138d6aa9dfc96e08.tar.bz2
nixlib-81588746aa2462a497e7cd23138d6aa9dfc96e08.tar.lz
nixlib-81588746aa2462a497e7cd23138d6aa9dfc96e08.tar.xz
nixlib-81588746aa2462a497e7cd23138d6aa9dfc96e08.tar.zst
nixlib-81588746aa2462a497e7cd23138d6aa9dfc96e08.zip
Add Mosquitto MQTT server package
as of now it is just built and copied to the right place so that
the server can be run.  hopefully i will be tweaking with the
configuration files in the future and tweak this a bit more
Diffstat (limited to 'pkgs/servers/mqtt')
-rw-r--r--pkgs/servers/mqtt/mosquitto/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/servers/mqtt/mosquitto/default.nix b/pkgs/servers/mqtt/mosquitto/default.nix
new file mode 100644
index 000000000000..4fdb475d89b8
--- /dev/null
+++ b/pkgs/servers/mqtt/mosquitto/default.nix
@@ -0,0 +1,30 @@
+{ stdenv, fetchurl, openssl, libuuid }:
+
+stdenv.mkDerivation rec {
+  pname = "mosquitto";
+  version = "1.4";
+
+  name = "${pname}-${version}";
+
+  src = fetchurl {
+    url = http://mosquitto.org/files/source/mosquitto-1.4.tar.gz;
+    sha256 = "1imw5ps0cqda41b574k8hgz9gdr8yy58f76fg8gw14pdnvf3l7sr";
+  };
+
+  buildInputs = [ openssl libuuid ];
+
+  buildFlags = "mosquitto";
+
+  installPhase = ''
+    mkdir -p $out/bin
+    cp src/mosquitto $out/bin/
+  '';
+
+  meta = {
+    homepage = http://mosquitto.org/;
+    description = "An open source MQTT v3.1/3.1.1 broker";
+    platforms = stdenv.lib.platforms.unix;
+    # http://www.eclipse.org/legal/epl-v10.html (free software, copyleft)
+    license = stdenv.lib.licenses.epl10;
+  };
+}