mosquitto: add websockets support.
This commit is contained in:
parent
92f0d709e9
commit
6a01fc2b7c
1 changed files with 5 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ stdenv, fetchurl, openssl, libuuid, cmake }:
|
{ stdenv, fetchurl, openssl, libuuid, cmake, libwebsockets }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mosquitto";
|
pname = "mosquitto";
|
||||||
|
@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "1imw5ps0cqda41b574k8hgz9gdr8yy58f76fg8gw14pdnvf3l7sr";
|
sha256 = "1imw5ps0cqda41b574k8hgz9gdr8yy58f76fg8gw14pdnvf3l7sr";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ openssl libuuid ]
|
buildInputs = [ openssl libuuid libwebsockets ]
|
||||||
++ stdenv.lib.optional stdenv.isDarwin cmake;
|
++ stdenv.lib.optional stdenv.isDarwin cmake;
|
||||||
|
|
||||||
makeFlags = [
|
makeFlags = [
|
||||||
|
@ -22,6 +22,9 @@ stdenv.mkDerivation rec {
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
substituteInPlace config.mk \
|
substituteInPlace config.mk \
|
||||||
--replace "/usr/local" ""
|
--replace "/usr/local" ""
|
||||||
|
substituteInPlace config.mk \
|
||||||
|
--replace "WITH_WEBSOCKETS:=no" "WITH_WEBSOCKETS:=yes"
|
||||||
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
|
|
Loading…
Reference in a new issue