mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-01 04:10:04 +00:00
tor: fix tests in darwin sandbox
one of the tests requires local networking, which fails with `sandbox = relaxed` on darwin. use the opt-out flag to allow this test to pass successfully.
This commit is contained in:
@@ -103,6 +103,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
# https://gitlab.torproject.org/tpo/core/tor/-/issues/40912
|
||||
doCheck = !(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch32);
|
||||
|
||||
# some tests (e.g. util/socketpair_ersatz) fail in the darwin sandbox otherwise.
|
||||
__darwinAllowLocalNetworking = true;
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $geoip/share/tor
|
||||
mv $out/share/tor/geoip{,6} $geoip/share/tor
|
||||
|
||||
Reference in New Issue
Block a user