about summary refs log tree commit diff
path: root/pkgs/top-level/emscripten-packages.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/top-level/emscripten-packages.nix')
-rw-r--r--pkgs/top-level/emscripten-packages.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/top-level/emscripten-packages.nix b/pkgs/top-level/emscripten-packages.nix
index f4d2fd06a90c..af4f2fa7f1cd 100644
--- a/pkgs/top-level/emscripten-packages.nix
+++ b/pkgs/top-level/emscripten-packages.nix
@@ -67,8 +67,8 @@ rec {
         set -x
         emcc -O2 -s EMULATE_FUNCTION_POINTER_CASTS=1 xmllint.o \
         ./.libs/''
-      + pkgs.lib.optionalString pkgs.stdenv.isDarwin "libxml2.dylib "
-      + pkgs.lib.optionalString (!pkgs.stdenv.isDarwin) "libxml2.a "
+      + pkgs.lib.optionalString pkgs.stdenv.hostPlatform.isDarwin "libxml2.dylib "
+      + pkgs.lib.optionalString (!pkgs.stdenv.hostPlatform.isDarwin) "libxml2.a "
       + '' `pkg-config zlib --cflags` `pkg-config zlib --libs` -o ./xmllint.test.js \
         --embed-file ./test/xmlid/id_err1.xml
 
@@ -175,7 +175,7 @@ rec {
         echo "================= /testing zlib using node ================="
       '';
 
-      postPatch = pkgs.lib.optionalString pkgs.stdenv.isDarwin ''
+      postPatch = pkgs.lib.optionalString pkgs.stdenv.hostPlatform.isDarwin ''
         substituteInPlace configure \
           --replace '/usr/bin/libtool' 'ar' \
           --replace 'AR="libtool"' 'AR="ar"' \