about summary refs log tree commit diff
path: root/pkgs/tools/misc/renameutils/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/renameutils/default.nix')
-rw-r--r--pkgs/tools/misc/renameutils/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/tools/misc/renameutils/default.nix b/pkgs/tools/misc/renameutils/default.nix
index e3ce23eca0a3..e09b7c60f971 100644
--- a/pkgs/tools/misc/renameutils/default.nix
+++ b/pkgs/tools/misc/renameutils/default.nix
@@ -11,7 +11,7 @@ stdenv.mkDerivation rec {
 
   patches = [ ./install-exec.patch ];
 
-  postPatch = lib.optionalString stdenv.isDarwin ''
+  postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
     substituteInPlace src/apply.c \
       --replace "command = \"mv\"" "command = \"${coreutils}/bin/mv\"" \
       --replace "command = \"cp\"" "command = \"${coreutils}/bin/cp\""
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ readline ];
 
-  preConfigure = lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) ''
+  preConfigure = lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) ''
     export ac_cv_func_lstat64=no
   '';