aboutsummaryrefslogtreecommitdiff
path: root/pkgs/tools/security/tor/default.nix
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2015-12-16 14:10:31 -0800
committerJohn Wiegley <johnw@newartisans.com>2015-12-16 14:10:31 -0800
commit2cd323a51a6f1657c57003dec47181d01733416f (patch)
tree724b312bf009bd1d44c69c6ae9937c76d5107c72 /pkgs/tools/security/tor/default.nix
parentdb9bc6875f3ad5e7bddcbeab7124bd5b8fc684c6 (diff)
tor: Allow building on Darwin
Diffstat (limited to 'pkgs/tools/security/tor/default.nix')
-rw-r--r--pkgs/tools/security/tor/default.nix3
1 files changed, 2 insertions, 1 deletions
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";