about summary refs log tree commit diff
path: root/pkgs/tools/archivers/unzip/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/archivers/unzip/default.nix')
-rw-r--r--pkgs/tools/archivers/unzip/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/archivers/unzip/default.nix b/pkgs/tools/archivers/unzip/default.nix
index ae9a129c766f..2b353598a328 100644
--- a/pkgs/tools/archivers/unzip/default.nix
+++ b/pkgs/tools/archivers/unzip/default.nix
@@ -85,7 +85,7 @@ stdenv.mkDerivation rec {
   ]
   # `lchmod` is not available on Linux, so we remove it to fix "not supported" errors (when the zip file contains symlinks).
   # Alpine (musl) and Debian (glibc) also add this flag.
-  ++ lib.optionals stdenv.isLinux [ "LOCAL_UNZIP=-DNO_LCHMOD" ];
+  ++ lib.optionals stdenv.hostPlatform.isLinux [ "LOCAL_UNZIP=-DNO_LCHMOD" ];
 
   preConfigure = ''
     sed -i -e 's@CF="-O3 -Wall -I. -DASM_CRC $(LOC)"@CF="-O3 -Wall -I. -DASM_CRC -DLARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 $(LOC)"@' unix/Makefile