a28a2e3829
Semi-automatic update. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 1.4.15 with grep in /nix/store/7nifpbj16dlhljb2jwbwxyv4wx1zwa1y-mosquitto-1.4.15 - found 1.4.15 in filename of file in /nix/store/7nifpbj16dlhljb2jwbwxyv4wx1zwa1y-mosquitto-1.4.15
37 lines
1,017 B
Nix
37 lines
1,017 B
Nix
{ stdenv, fetchurl, openssl, libuuid, cmake, libwebsockets, c-ares, libuv }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mosquitto";
|
|
version = "1.4.15";
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "http://mosquitto.org/files/source/mosquitto-${version}.tar.gz";
|
|
sha256 = "10wsm1n4y61nz45zwk4zjhvrfd86r2cq33370m5wjkivb8j3wfvx";
|
|
};
|
|
|
|
buildInputs = [ openssl libuuid libwebsockets c-ares libuv ]
|
|
++ stdenv.lib.optional stdenv.isDarwin cmake;
|
|
|
|
makeFlags = stdenv.lib.optionals stdenv.isLinux [
|
|
"DESTDIR=$(out)"
|
|
"PREFIX="
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace config.mk \
|
|
--replace "/usr/local" ""
|
|
substituteInPlace config.mk \
|
|
--replace "WITH_WEBSOCKETS:=no" "WITH_WEBSOCKETS:=yes"
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|