about summary refs log tree commit diff
path: root/pkgs/development/libraries/clfft/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/clfft/default.nix')
-rw-r--r--pkgs/development/libraries/clfft/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/clfft/default.nix b/pkgs/development/libraries/clfft/default.nix
index 824449b0fafc..5843c1b1fcca 100644
--- a/pkgs/development/libraries/clfft/default.nix
+++ b/pkgs/development/libraries/clfft/default.nix
@@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
   nativeBuildInputs = [ cmake ];
 
   buildInputs = [ fftw fftwFloat boost ]
-    ++ lib.optionals stdenv.isLinux [ opencl-clhpp ocl-icd ]
-    ++ lib.optionals stdenv.isDarwin [ OpenCL ];
+    ++ lib.optionals stdenv.hostPlatform.isLinux [ opencl-clhpp ocl-icd ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ OpenCL ];
 
   # https://github.com/clMathLibraries/clFFT/issues/237
   CXXFLAGS = "-std=c++98";