git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit81588746aa2462a497e7cd23138d6aa9dfc96e08 authorSuvash Thapaliya <suvash@gmail.com> dateThu 19 Feb 2015, 23:53 (12 years ago) parent18ec13d
2 files changed+32
pkgs/servers/mqtt/mosquitto/default.nix+30 pkgs/top-level/all-packages.nix+2
pkgs/servers/mqtt/mosquitto/default.nixnew file+30
@@ -0,0 +1,30 @@
1+{ stdenv, fetchurl, openssl, libuuid }:
2+
3+stdenv.mkDerivation rec {
4+ pname = "mosquitto";
5+ version = "1.4";
6+
7+ name = "${pname}-${version}";
8+
9+ src = fetchurl {
10+ url = http://mosquitto.org/files/source/mosquitto-1.4.tar.gz;
11+ sha256 = "1imw5ps0cqda41b574k8hgz9gdr8yy58f76fg8gw14pdnvf3l7sr";
12+ };
13+
14+ buildInputs = [ openssl libuuid ];
15+
16+ buildFlags = "mosquitto";
17+
18+ installPhase = ''
19+ mkdir -p $out/bin
20+ cp src/mosquitto $out/bin/
21+ '';
22+
23+ meta = {
24+ homepage = http://mosquitto.org/;
25+ description = "An open source MQTT v3.1/3.1.1 broker";
26+ platforms = stdenv.lib.platforms.unix;
27+ # http://www.eclipse.org/legal/epl-v10.html (free software, copyleft)
28+ license = stdenv.lib.licenses.epl10;
29+ };
30+}
pkgs/top-level/all-packages.nix+2
@@ -6789,6 +6789,8 @@ let
67896789
67906790 movit = callPackage ../development/libraries/movit { };
67916791
6792+ mosquitto = callPackage ../servers/mqtt/mosquitto { };
6793+
67926794 mps = callPackage ../development/libraries/mps { };
67936795
67946796 libmpeg2 = callPackage ../development/libraries/libmpeg2 { };