Merge pull request #6464 from suvash/add-mosquitto-broker
Add Mosquitto MQTT server package
This commit is contained in:
commit
cbac300134
30
pkgs/servers/mqtt/mosquitto/default.nix
Normal file
30
pkgs/servers/mqtt/mosquitto/default.nix
Normal file
@ -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;
|
||||
};
|
||||
}
|
@ -6790,6 +6790,8 @@ let
|
||||
|
||||
movit = callPackage ../development/libraries/movit { };
|
||||
|
||||
mosquitto = callPackage ../servers/mqtt/mosquitto { };
|
||||
|
||||
mps = callPackage ../development/libraries/mps { };
|
||||
|
||||
libmpeg2 = callPackage ../development/libraries/libmpeg2 { };
|
||||
|
Loading…
Reference in New Issue
Block a user