From eab5ff59f67ba690894d08408a01296a9197079e Mon Sep 17 00:00:00 2001 From: Spencer Whitt Date: Wed, 8 Apr 2015 01:41:58 -0400 Subject: [PATCH] tor: fix for Darwin --- pkgs/tools/security/tor/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/security/tor/default.nix b/pkgs/tools/security/tor/default.nix index db3fe3197fa5..9677cc1f1046 100644 --- a/pkgs/tools/security/tor/default.nix +++ b/pkgs/tools/security/tor/default.nix @@ -13,7 +13,7 @@ stdenv.mkDerivation rec { # ./configure time check for any of this. 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. patchPhase = '' @@ -43,6 +43,6 @@ stdenv.mkDerivation rec { maintainers = with stdenv.lib.maintainers; [ phreedom doublec thoughtpolice ]; - platforms = stdenv.lib.platforms.gnu; # arbitrary choice + platforms = stdenv.lib.platforms.unix; }; }