about summary refs log tree commit diff
path: root/pkgs/by-name/wi/wiliwili/package.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/by-name/wi/wiliwili/package.nix')
-rw-r--r--pkgs/by-name/wi/wiliwili/package.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/by-name/wi/wiliwili/package.nix b/pkgs/by-name/wi/wiliwili/package.nix
index 302b47b65b4e..85cc143f45f6 100644
--- a/pkgs/by-name/wi/wiliwili/package.nix
+++ b/pkgs/by-name/wi/wiliwili/package.nix
@@ -31,7 +31,7 @@ stdenv.mkDerivation (finalAttrs: {
   nativeBuildInputs = [
     cmake
     pkg-config
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     wayland-scanner
   ];
 
@@ -41,7 +41,7 @@ stdenv.mkDerivation (finalAttrs: {
     curl
     libxkbcommon
     dbus
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     libffi # needed for wayland
     wayland
     egl-wayland
@@ -55,8 +55,8 @@ stdenv.mkDerivation (finalAttrs: {
   cmakeFlags = [
     (lib.cmakeBool "PLATFORM_DESKTOP" true)
     (lib.cmakeBool "INSTALL" true)
-    (lib.cmakeBool "GLFW_BUILD_WAYLAND" stdenv.isLinux)
-    (lib.cmakeBool "GLFW_BUILD_X11" stdenv.isLinux)
+    (lib.cmakeBool "GLFW_BUILD_WAYLAND" stdenv.hostPlatform.isLinux)
+    (lib.cmakeBool "GLFW_BUILD_X11" stdenv.hostPlatform.isLinux)
     # Otherwise cpr cmake will try to download zlib
     (lib.cmakeBool "CPR_FORCE_USE_SYSTEM_CURL" true)
   ];