From 6a01fc2b7c7f6534821572e34febc2902b5370fb Mon Sep 17 00:00:00 2001 From: Matthew O'Gorman Date: Wed, 24 Aug 2016 04:56:46 -0400 Subject: [PATCH] mosquitto: add websockets support. --- pkgs/servers/mqtt/mosquitto/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/mqtt/mosquitto/default.nix b/pkgs/servers/mqtt/mosquitto/default.nix index be7947a03d6c..a136c94aa575 100644 --- a/pkgs/servers/mqtt/mosquitto/default.nix +++ b/pkgs/servers/mqtt/mosquitto/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, openssl, libuuid, cmake }: +{ stdenv, fetchurl, openssl, libuuid, cmake, libwebsockets }: stdenv.mkDerivation rec { pname = "mosquitto"; @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "1imw5ps0cqda41b574k8hgz9gdr8yy58f76fg8gw14pdnvf3l7sr"; }; - buildInputs = [ openssl libuuid ] + buildInputs = [ openssl libuuid libwebsockets ] ++ stdenv.lib.optional stdenv.isDarwin cmake; makeFlags = [ @@ -22,6 +22,9 @@ stdenv.mkDerivation rec { preBuild = '' substituteInPlace config.mk \ --replace "/usr/local" "" + substituteInPlace config.mk \ + --replace "WITH_WEBSOCKETS:=no" "WITH_WEBSOCKETS:=yes" + ''; meta = {