about summary refs log tree commit diff
path: root/pkgs/development/libraries/ois/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/ois/default.nix')
-rw-r--r--pkgs/development/libraries/ois/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/libraries/ois/default.nix b/pkgs/development/libraries/ois/default.nix
index 0a384b03bb2a..435509dee216 100644
--- a/pkgs/development/libraries/ois/default.nix
+++ b/pkgs/development/libraries/ois/default.nix
@@ -13,8 +13,8 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ cmake ];
 
-  buildInputs = lib.optionals stdenv.isLinux [ libX11 ]
-    ++ lib.optionals stdenv.isDarwin [ Cocoa IOKit Kernel ];
+  buildInputs = lib.optionals stdenv.hostPlatform.isLinux [ libX11 ]
+    ++ lib.optionals stdenv.hostPlatform.isDarwin [ Cocoa IOKit Kernel ];
 
   cmakeFlags = [
     "-DCMAKE_INSTALL_LIBDIR=lib"