about summary refs log tree commit diff
path: root/pkgs/tools/archivers/7zz/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/archivers/7zz/default.nix')
-rw-r--r--pkgs/tools/archivers/7zz/default.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/tools/archivers/7zz/default.nix b/pkgs/tools/archivers/7zz/default.nix
index 74746fa5f1f30..8a0b1365ee2de 100644
--- a/pkgs/tools/archivers/7zz/default.nix
+++ b/pkgs/tools/archivers/7zz/default.nix
@@ -4,7 +4,7 @@
 
   # Only used for Linux's x86/x86_64
 , uasm
-, useUasm ? (stdenv.isLinux && stdenv.hostPlatform.isx86)
+, useUasm ? (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isx86)
 
   # RAR code is under non-free unRAR license
   # see the meta.license section below for more details
@@ -52,7 +52,7 @@ stdenv.mkDerivation (finalAttrs: {
       --replace windres.exe ${stdenv.cc.targetPrefix}windres
   '';
 
-  env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.isDarwin [
+  env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.hostPlatform.isDarwin [
     "-Wno-deprecated-copy-dtor"
   ] ++ lib.optionals stdenv.hostPlatform.isMinGW [
     "-Wno-conversion"
@@ -80,7 +80,7 @@ stdenv.mkDerivation (finalAttrs: {
     # We need at minimum 10.13 here because of utimensat, however since
     # we need a bump anyway, let's set the same minimum version as the one in
     # aarch64-darwin so we don't need additional changes for it
-    ++ lib.optionals stdenv.isDarwin [ "MACOSX_DEPLOYMENT_TARGET=10.16" ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ "MACOSX_DEPLOYMENT_TARGET=10.16" ]
     # it's the compression code with the restriction, see DOC/License.txt
     ++ lib.optionals (!enableUnfree) [ "DISABLE_RAR_COMPRESS=true" ]
     ++ lib.optionals (stdenv.hostPlatform.isMinGW) [ "IS_MINGW=1" "MSYSTEM=1" ];