about summary refs log tree commit diff
path: root/pkgs/tools/misc/pre-commit/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/pre-commit/default.nix')
-rw-r--r--pkgs/tools/misc/pre-commit/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/tools/misc/pre-commit/default.nix b/pkgs/tools/misc/pre-commit/default.nix
index 0afa9180a47d..4901663d0d02 100644
--- a/pkgs/tools/misc/pre-commit/default.nix
+++ b/pkgs/tools/misc/pre-commit/default.nix
@@ -81,7 +81,7 @@ buildPythonApplication rec {
     "--forked"
   ];
 
-  preCheck = lib.optionalString (!(stdenv.isLinux && stdenv.isAarch64)) ''
+  preCheck = lib.optionalString (!(stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64)) ''
     # Disable outline atomics for rust tests on aarch64-linux.
     export RUSTFLAGS="-Ctarget-feature=-outline-atomics"
   '' + ''