mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 23:52:33 +00:00
Merge pull request #142470 from misuzu/sentry-sdk-fix
This commit is contained in:
commit
acd5e8ef32
|
@ -29,7 +29,7 @@ buildPythonPackage rec {
|
|||
|
||||
doCheck = !stdenv.isDarwin;
|
||||
|
||||
preCheck = ''
|
||||
preCheck = lib.optionalString doCheck ''
|
||||
echo "nameserver 127.0.0.1" > resolv.conf
|
||||
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf)
|
||||
export LD_PRELOAD=${libredirect}/lib/libredirect.so
|
||||
|
|
|
@ -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
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue