about summary refs log tree commit diff
path: root/pkgs/development/libraries/icu/make-icu.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/icu/make-icu.nix')
-rw-r--r--pkgs/development/libraries/icu/make-icu.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/development/libraries/icu/make-icu.nix b/pkgs/development/libraries/icu/make-icu.nix
index 575f184c163f..52b083995ec7 100644
--- a/pkgs/development/libraries/icu/make-icu.nix
+++ b/pkgs/development/libraries/icu/make-icu.nix
@@ -31,7 +31,7 @@ let
 
       # $(includedir) is different from $(prefix)/include due to multiple outputs
       sed -i -e 's|^\(CPPFLAGS = .*\) -I\$(prefix)/include|\1 -I$(includedir)|' config/Makefile.inc.in
-    '' + lib.optionalString stdenv.isAarch32 ''
+    '' + lib.optionalString stdenv.hostPlatform.isAarch32 ''
       # From https://archlinuxarm.org/packages/armv7h/icu/files/icudata-stdlibs.patch
       sed -e 's/LDFLAGSICUDT=-nodefaultlibs -nostdlib/LDFLAGSICUDT=/' -i config/mh-linux
     '';
@@ -39,7 +39,7 @@ let
     dontDisableStatic = withStatic;
 
     configureFlags = [ "--disable-debug" ]
-      ++ lib.optional (stdenv.isFreeBSD || stdenv.isDarwin) "--enable-rpath"
+      ++ lib.optional (stdenv.hostPlatform.isFreeBSD || stdenv.hostPlatform.isDarwin) "--enable-rpath"
       ++ lib.optional (stdenv.buildPlatform != stdenv.hostPlatform) "--with-cross-build=${nativeBuildRoot}"
       ++ lib.optional withStatic "--enable-static";
 
@@ -74,7 +74,7 @@ let
     postInstall = lib.optionalString withStatic ''
       mkdir -p $static/lib
       mv -v lib/*.a $static/lib
-    '' + lib.optionalString stdenv.isDarwin ''
+    '' + lib.optionalString stdenv.hostPlatform.isDarwin ''
       sed -i 's/INSTALL_CMD=.*install/INSTALL_CMD=install/' $out/lib/icu/${version}/pkgdata.inc
     '' + (let
       replacements = [