build: fix bind errors in darwin sandboxes
See
@@ -160,4 +160,8 @@ stdenvNoCC.mkDerivation {
exit "$fail"
'';
+
+ # Fix 'bind: operation not permitted' when nix.useSandbox = true on darwin.
+ # See https://github.com/NixOS/nix/blob/5f6840fbb49ae5b534423bd8a4360646ee93dbaf/src/libstore/build.cc#L2961
+ __darwinAllowLocalNetworking = true;
}
