about summary refs log tree commit diff
path: root/pkgs/development/python-modules/libasyncns/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/libasyncns/default.nix')
-rw-r--r--pkgs/development/python-modules/libasyncns/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/libasyncns/default.nix b/pkgs/development/python-modules/libasyncns/default.nix
index 730d1a9217d5a..b81e67f8f926f 100644
--- a/pkgs/development/python-modules/libasyncns/default.nix
+++ b/pkgs/development/python-modules/libasyncns/default.nix
@@ -18,7 +18,7 @@ buildPythonPackage rec {
 
   patches = [ ./libasyncns-fix-res-consts.patch ];
 
-  postPatch = lib.optionalString stdenv.isDarwin ''
+  postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
     substituteInPlace resquery.c \
       --replace '<arpa/nameser.h>' '<arpa/nameser_compat.h>'
   '';