bazel_6: Enable local networking for tests on Darwin

authored by Claudio and committed by Claudio Bley 4f857cd1 a75d0a73

+5 -1
+5 -1
pkgs/development/tools/build-managers/bazel/bazel_6/default.nix
··· 310 bazelTest = { name, bazelScript, workspaceDir, bazelPkg, buildInputs ? [] }: 311 let 312 be = extracted bazelPkg; 313 - in runLocal name { inherit buildInputs; } ( 314 # 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