serf: add change for the lack of kerberos on darwin

This commit is contained in:
John Wiegley 2015-01-02 14:47:21 -06:00 committed by Shea Levy
parent a8ea864ff2
commit 70befe1df1

View file

@ -18,9 +18,11 @@ stdenv.mkDerivation rec {
buildPhase = ''
scons PREFIX="$out" OPENSSL="${openssl}" ZLIB="${zlib}" APR="$(echo "${apr}"/bin/*-config)" \
APU="$(echo "${aprutil}"/bin/*-config)" GSSAPI="${kerberos}" CC="${
APU="$(echo "${aprutil}"/bin/*-config)" CC="${
if stdenv.isDarwin then "clang" else "${stdenv.cc}/bin/gcc"
}"
}" ${
if stdenv.isDarwin then "" else "GSSAPI=\"${kerberos}\""
}
'';
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-L/usr/lib";