From f70bc6442dacdfc4fd3b7b20b24bc6ab6aebbb5c Mon Sep 17 00:00:00 2001 From: whispers Date: Thu, 24 Sep 2026 10:21:28 -0400 Subject: [PATCH] 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. --- pkgs/by-name/to/tor/package.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/by-name/to/tor/package.nix b/pkgs/by-name/to/tor/package.nix index 1c62636bbfff..3576369e75af 100644 --- a/pkgs/by-name/to/tor/package.nix +++ b/pkgs/by-name/to/tor/package.nix @@ -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