about summary refs log tree commit diff
path: root/pkgs/tools/archivers/zip/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/archivers/zip/default.nix')
-rw-r--r--pkgs/tools/archivers/zip/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/archivers/zip/default.nix b/pkgs/tools/archivers/zip/default.nix
index a192b38785049..2c225489a3462 100644
--- a/pkgs/tools/archivers/zip/default.nix
+++ b/pkgs/tools/archivers/zip/default.nix
@@ -20,7 +20,7 @@ stdenv.mkDerivation rec {
   hardeningDisable = [ "format" ];
 
   makefile = "unix/Makefile";
-  buildFlags = if stdenv.isCygwin then [ "cygwin" ] else [ "generic" ];
+  buildFlags = if stdenv.hostPlatform.isCygwin then [ "cygwin" ] else [ "generic" ];
   installFlags = [
     "prefix=${placeholder "out"}"
     "INSTALL=cp"
@@ -38,10 +38,10 @@ stdenv.mkDerivation rec {
     ./buffer-overflow-on-utf8-rh-bug-2165653.patch
     # Fixes forward declaration errors with timezone.c
     ./fix-time.h-not-included.patch
-  ] ++ lib.optionals (enableNLS && !stdenv.isCygwin) [ ./natspec-gentoo.patch.bz2 ];
+  ] ++ lib.optionals (enableNLS && !stdenv.hostPlatform.isCygwin) [ ./natspec-gentoo.patch.bz2 ];
 
   buildInputs = lib.optional enableNLS libnatspec
-    ++ lib.optional stdenv.isCygwin libiconv;
+    ++ lib.optional stdenv.hostPlatform.isCygwin libiconv;
 
   meta = with lib; {
     description = "Compressor/archiver for creating and modifying zipfiles";