about summary refs log tree commit diff
path: root/pkgs/development/libraries/ncnn/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/ncnn/default.nix')
-rw-r--r--pkgs/development/libraries/ncnn/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/ncnn/default.nix b/pkgs/development/libraries/ncnn/default.nix
index ae82d0490be4..f431133c2505 100644
--- a/pkgs/development/libraries/ncnn/default.nix
+++ b/pkgs/development/libraries/ncnn/default.nix
@@ -35,7 +35,7 @@ stdenv.mkDerivation rec {
     "-DNCNN_PYTHON=0" # Should be an attribute
   ]
   # Requires setting `Vulkan_LIBRARY` on Darwin. Otherwise the build fails due to missing symbols.
-  ++ lib.optionals stdenv.isDarwin [ "-DVulkan_LIBRARY=-lvulkan" ];
+  ++ lib.optionals stdenv.hostPlatform.isDarwin [ "-DVulkan_LIBRARY=-lvulkan" ];
 
   nativeBuildInputs = [ cmake ];
   buildInputs = [ vulkan-headers vulkan-loader glslang opencv protobuf ];