mosquitto: fix darwin build (#29851)

This commit is contained in:
volth 2017-09-28 19:15:42 +00:00 committed by Daiderd Jordan
parent 6cdcdb14c9
commit 144914121c

View File

@ -14,12 +14,12 @@ stdenv.mkDerivation rec {
buildInputs = [ openssl libuuid libwebsockets c-ares libuv ] buildInputs = [ openssl libuuid libwebsockets c-ares libuv ]
++ stdenv.lib.optional stdenv.isDarwin cmake; ++ stdenv.lib.optional stdenv.isDarwin cmake;
makeFlags = [ makeFlags = stdenv.lib.optionals stdenv.isLinux [
"DESTDIR=$(out)" "DESTDIR=$(out)"
"PREFIX=" "PREFIX="
]; ];
preBuild = '' postPatch = ''
substituteInPlace config.mk \ substituteInPlace config.mk \
--replace "/usr/local" "" --replace "/usr/local" ""
substituteInPlace config.mk \ substituteInPlace config.mk \