From 144914121c158d2b3c738b74cd4b2e127c1d04f5 Mon Sep 17 00:00:00 2001 From: volth Date: Thu, 28 Sep 2017 19:15:42 +0000 Subject: [PATCH] mosquitto: fix darwin build (#29851) --- pkgs/servers/mqtt/mosquitto/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/mqtt/mosquitto/default.nix b/pkgs/servers/mqtt/mosquitto/default.nix index b0e05aa8bc0a..c157064fcb2b 100644 --- a/pkgs/servers/mqtt/mosquitto/default.nix +++ b/pkgs/servers/mqtt/mosquitto/default.nix @@ -14,12 +14,12 @@ stdenv.mkDerivation rec { buildInputs = [ openssl libuuid libwebsockets c-ares libuv ] ++ stdenv.lib.optional stdenv.isDarwin cmake; - makeFlags = [ + makeFlags = stdenv.lib.optionals stdenv.isLinux [ "DESTDIR=$(out)" "PREFIX=" ]; - preBuild = '' + postPatch = '' substituteInPlace config.mk \ --replace "/usr/local" "" substituteInPlace config.mk \