about summary refs log tree commit diff
path: root/pkgs/development/libraries/libidn2/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/libidn2/default.nix')
-rw-r--r--pkgs/development/libraries/libidn2/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/libidn2/default.nix b/pkgs/development/libraries/libidn2/default.nix
index bfe9c2a24264..90c7198757c7 100644
--- a/pkgs/development/libraries/libidn2/default.nix
+++ b/pkgs/development/libraries/libidn2/default.nix
@@ -22,8 +22,8 @@ stdenv.mkDerivation rec {
 
   # The above patch causes the documentation to be regenerated, so the
   # documentation tools are required.
-  nativeBuildInputs = lib.optionals stdenv.isDarwin [ help2man texinfo ];
-  buildInputs = [ libunistring ] ++ lib.optional stdenv.isDarwin libiconv;
+  nativeBuildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ help2man texinfo ];
+  buildInputs = [ libunistring ] ++ lib.optional stdenv.hostPlatform.isDarwin libiconv;
   depsBuildBuild = [ buildPackages.stdenv.cc ];
 
   meta = {