build: fix bind errors in darwin sandboxes

See 5f6840fbb4/src/libstore/build.cc (L2961)
This commit is contained in:
Brendan Hay 2020-11-04 11:48:46 +01:00
parent b501a80293
commit 00d236501e
No known key found for this signature in database
GPG Key ID: 80E915C54A7C457D

View File

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