about summary refs log tree commit diff
path: root/pkgs/development/python-modules/ipwhois/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/ipwhois/default.nix')
-rw-r--r--pkgs/development/python-modules/ipwhois/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/ipwhois/default.nix b/pkgs/development/python-modules/ipwhois/default.nix
index bd69e5ccd514..ea8fa078833d 100644
--- a/pkgs/development/python-modules/ipwhois/default.nix
+++ b/pkgs/development/python-modules/ipwhois/default.nix
@@ -49,7 +49,7 @@ buildPythonPackage rec {
 
   pythonImportsCheck = [ "ipwhois" ];
 
-  preCheck = lib.optionalString stdenv.isLinux ''
+  preCheck = 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) \
       LD_PRELOAD=${libredirect}/lib/libredirect.so