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:
whispers
2026-09-24 10:21:28 -04:00
parent 7bfeeac643
commit f70bc6442d

View File

@@ -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