about summary refs log tree commit diff
path: root/pkgs/development/libraries/libasyncns/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libasyncns/default.nix')
-rw-r--r--pkgs/development/libraries/libasyncns/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libasyncns/default.nix b/pkgs/development/libraries/libasyncns/default.nix
index 09e056373d27..77c998f4216b 100644
--- a/pkgs/development/libraries/libasyncns/default.nix
+++ b/pkgs/development/libraries/libasyncns/default.nix
@@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
     sha256 = "0x5b6lcic4cd7q0bx00x93kvpyzl7n2abbgvqbrlzrfb8vknc6jg";
   };
 
-  postPatch = lib.optionalString stdenv.isDarwin ''
+  postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
     substituteInPlace libasyncns/asyncns.c \
       --replace '<arpa/nameser.h>' '<arpa/nameser_compat.h>'
   '';