pythonPackages.cassandra-driver: Remove usage of stdenv.lib
This commit is contained in:
parent
44b07653bd
commit
98f8216f6c
@ -38,7 +38,7 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
# Make /etc/protocols accessible to allow socket.getprotobyname('tcp') in sandbox,
|
# Make /etc/protocols accessible to allow socket.getprotobyname('tcp') in sandbox,
|
||||||
# also /etc/resolv.conf is referenced by some tests
|
# also /etc/resolv.conf is referenced by some tests
|
||||||
preCheck = (stdenv.lib.optionalString stdenv.isLinux ''
|
preCheck = (lib.optionalString stdenv.isLinux ''
|
||||||
echo "nameserver 127.0.0.1" > resolv.conf
|
echo "nameserver 127.0.0.1" > resolv.conf
|
||||||
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf)
|
export NIX_REDIRECTS=/etc/protocols=${iana-etc}/etc/protocols:/etc/resolv.conf=$(realpath resolv.conf)
|
||||||
export LD_PRELOAD=${libredirect}/lib/libredirect.so
|
export LD_PRELOAD=${libredirect}/lib/libredirect.so
|
||||||
|
Loading…
Reference in New Issue
Block a user