about summary refs log tree commit diff
path: root/pkgs/development/libraries/lightgbm/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/lightgbm/default.nix')
-rw-r--r--pkgs/development/libraries/lightgbm/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/lightgbm/default.nix b/pkgs/development/libraries/lightgbm/default.nix
index 4aa28f6461e1..934b0cab5a3e 100644
--- a/pkgs/development/libraries/lightgbm/default.nix
+++ b/pkgs/development/libraries/lightgbm/default.nix
@@ -34,7 +34,7 @@ stdenv.mkDerivation rec {
   };
 
   nativeBuildInputs = [ cmake ]
-    ++ lib.optionals stdenv.isDarwin [ llvmPackages.openmp ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ llvmPackages.openmp ]
     ++ lib.optionals openclSupport [ opencl-headers ocl-icd boost ]
     ++ lib.optionals mpiSupport [ openmpi ]
     ++ lib.optionals hdfsSupport [ hadoop ]