From 2cd323a51a6f1657c57003dec47181d01733416f Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Wed, 16 Dec 2015 14:10:31 -0800 Subject: [PATCH] tor: Allow building on Darwin --- pkgs/tools/security/tor/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/tools/security/tor/default.nix b/pkgs/tools/security/tor/default.nix index 9e73c7d4053f..a03a945f8052 100644 --- a/pkgs/tools/security/tor/default.nix +++ b/pkgs/tools/security/tor/default.nix @@ -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";