about summary refs log tree commit diff
path: root/pkgs/tools/security/tor
diff options
context:
space:
mode:
authorRichard Marko <srk@48.io>2020-05-04 14:22:33 +0200
committerRichard Marko <srk@48.io>2020-05-04 14:27:40 +0200
commit8aab081504b8671067c0a70330e279176d787952 (patch)
tree632f765d9b360b244a6392a1c6a3973f981ef9c0 /pkgs/tools/security/tor
parent2fb5dac372fedd482ef3c65b608810bb7dd45083 (diff)
tor: fix cross compiling
Diffstat (limited to 'pkgs/tools/security/tor')
-rw-r--r--pkgs/tools/security/tor/default.nix4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkgs/tools/security/tor/default.nix b/pkgs/tools/security/tor/default.nix
index 215ab63328fc4..e6cd74eda4b11 100644
--- a/pkgs/tools/security/tor/default.nix
+++ b/pkgs/tools/security/tor/default.nix
@@ -30,6 +30,10 @@ stdenv.mkDerivation rec {
 
   patches = [ ./disable-monotonic-timer-tests.patch ];
 
+  # cross compiles correctly but needs the following
+  configureFlags = stdenv.lib.optional (stdenv.hostPlatform != stdenv.buildPlatform)
+    "--disable-tool-name-check";
+
   NIX_CFLAGS_LINK = stdenv.lib.optionalString stdenv.cc.isGNU "-lgcc_s";
 
   postPatch = ''