···310 bazelTest = { name, bazelScript, workspaceDir, bazelPkg, buildInputs ? [] }:
311 let
312 be = extracted bazelPkg;
313- in runLocal name { inherit buildInputs; } (
0000314 # skip extraction caching on Darwin, because nobody knows how Darwin works
315 (lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
316 # set up home with pre-unpacked bazel
···310 bazelTest = { name, bazelScript, workspaceDir, bazelPkg, buildInputs ? [] }:
311 let
312 be = extracted bazelPkg;
313+ in runLocal name {
314+ inherit buildInputs;
315+ # Necessary for the tests to pass on Darwin with sandbox enabled.
316+ __darwinAllowLocalNetworking = true;
317+ } (
318 # skip extraction caching on Darwin, because nobody knows how Darwin works
319 (lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
320 # set up home with pre-unpacked bazel