From 81588746aa2462a497e7cd23138d6aa9dfc96e08 Mon Sep 17 00:00:00 2001 From: Suvash Thapaliya Date: Thu, 19 Feb 2015 23:53:44 +0100 Subject: 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 --- pkgs/servers/mqtt/mosquitto/default.nix | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 pkgs/servers/mqtt/mosquitto/default.nix (limited to 'pkgs/servers/mqtt') 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; + }; +} -- cgit 1.4.1