mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 06:31:02 +00:00
81588746aa
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
31 lines
723 B
Nix
31 lines
723 B
Nix
{ 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;
|
|
};
|
|
}
|