Merge pull request #7258 from spwhitt/tor

tor: fix for Darwin
This commit is contained in:
Arseniy Seroka 2015-04-08 13:17:14 +03:00
commit 3e079614ab

View File

@ -13,7 +13,7 @@ stdenv.mkDerivation rec {
# ./configure time check for any of this. # ./configure time check for any of this.
buildInputs = [ libevent openssl zlib torsocks ]; buildInputs = [ libevent openssl zlib torsocks ];
CFLAGS = "-lgcc_s"; CFLAGS = stdenv.lib.optionalString (stdenv.cc.cc.isGNU or false) "-lgcc_s";
# Patch 'torify' to point directly to torsocks. # Patch 'torify' to point directly to torsocks.
patchPhase = '' patchPhase = ''
@ -43,6 +43,6 @@ stdenv.mkDerivation rec {
maintainers = with stdenv.lib.maintainers; maintainers = with stdenv.lib.maintainers;
[ phreedom doublec thoughtpolice ]; [ phreedom doublec thoughtpolice ];
platforms = stdenv.lib.platforms.gnu; # arbitrary choice platforms = stdenv.lib.platforms.unix;
}; };
} }