3
0
Fork 0
forked from mirrors/nixpkgs

tor: Allow building on Darwin

This commit is contained in:
John Wiegley 2015-12-16 14:10:31 -08:00
parent db9bc6875f
commit 2cd323a51a

View file

@ -11,7 +11,8 @@ stdenv.mkDerivation rec {
# Note: torsocks is specified as a dependency, as the distributed
# 'torify' wrapper attempts to use it; although there is no
# ./configure time check for any of this.
buildInputs = [ libevent openssl zlib torsocks libseccomp ];
buildInputs = [ libevent openssl zlib torsocks ] ++
stdenv.lib.optional stdenv.isLinux libseccomp;
NIX_CFLAGS_LINK = stdenv.lib.optionalString stdenv.cc.isGNU "-lgcc_s";