about summary refs log tree commit diff
path: root/pkgs/development/python-modules/cassandra-driver/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/cassandra-driver/default.nix')
-rw-r--r--pkgs/development/python-modules/cassandra-driver/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/cassandra-driver/default.nix b/pkgs/development/python-modules/cassandra-driver/default.nix
index 9548bd1214d8..0f03b20e196d 100644
--- a/pkgs/development/python-modules/cassandra-driver/default.nix
+++ b/pkgs/development/python-modules/cassandra-driver/default.nix
@@ -86,7 +86,7 @@ buildPythonPackage rec {
   # Make /etc/protocols accessible to allow socket.getprotobyname('tcp') in sandbox,
   # also /etc/resolv.conf is referenced by some tests
   preCheck =
-    (lib.optionalString stdenv.isLinux ''
+    (lib.optionalString stdenv.hostPlatform.isLinux ''
       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