about summary refs log tree commit diff
path: root/pkgs/development/libraries/fftw/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/fftw/default.nix')
-rw-r--r--pkgs/development/libraries/fftw/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/fftw/default.nix b/pkgs/development/libraries/fftw/default.nix
index 7c06a346e4bb..b6107f3ef91a 100644
--- a/pkgs/development/libraries/fftw/default.nix
+++ b/pkgs/development/libraries/fftw/default.nix
@@ -54,7 +54,7 @@ stdenv.mkDerivation (finalAttrs: {
   ++ lib.optional (precision != "double") "--enable-${precision}"
   # https://www.fftw.org/fftw3_doc/SIMD-alignment-and-fftw_005fmalloc.html
   # FFTW will try to detect at runtime whether the CPU supports these extensions
-  ++ lib.optional (stdenv.isx86_64 && (precision == "single" || precision == "double"))
+  ++ lib.optional (stdenv.hostPlatform.isx86_64 && (precision == "single" || precision == "double"))
     "--enable-sse2 --enable-avx --enable-avx2 --enable-avx512 --enable-avx128-fma"
   ++ lib.optional enableMpi "--enable-mpi"
   # doc generation causes Fortran wrapper generation which hard-codes gcc