python3Packages.sentry-sdk: fix build on darwin

conduit-nginx
misuzu 2021-10-21 16:01:55 +03:00
parent cbe5b1f7cd
commit c752492819
1 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ buildPythonPackage rec {
# `socket.getprotobyname('tcp')`, which reads from this file). Normally
# this path isn't available in the sandbox. Therefore, use libredirect
# to make on eavailable from `iana-etc`. This is a test-only operation.
preCheck = ''
preCheck = lib.optionalString doCheck ''
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols
export LD_PRELOAD=${libredirect}/lib/libredirect.so
'';