about summary refs log tree commit diff
path: root/pkgs/development/libraries/spice-gtk/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/libraries/spice-gtk/default.nix')
-rw-r--r--pkgs/development/libraries/spice-gtk/default.nix8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/spice-gtk/default.nix b/pkgs/development/libraries/spice-gtk/default.nix
index fd7428213fc9..048ba14f5f93 100644
--- a/pkgs/development/libraries/spice-gtk/default.nix
+++ b/pkgs/development/libraries/spice-gtk/default.nix
@@ -37,7 +37,7 @@
 , wayland-scanner
 , zlib
 , wrapGAppsHook3
-, withPolkit ? stdenv.isLinux
+, withPolkit ? stdenv.hostPlatform.isLinux
 }:
 
 # If this package is built with polkit support (withPolkit=true),
@@ -92,7 +92,7 @@ stdenv.mkDerivation rec {
     wrapGAppsHook3
   ] ++ lib.optionals (stdenv.buildPlatform != stdenv.hostPlatform) [
     mesonEmulatorHook
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     wayland-scanner
   ];
 
@@ -119,7 +119,7 @@ stdenv.mkDerivation rec {
   ] ++ lib.optionals withPolkit [
     polkit
     acl
-  ] ++ lib.optionals stdenv.isLinux [
+  ] ++ lib.optionals stdenv.hostPlatform.isLinux [
     libcap_ng
     libdrm
     wayland-protocols
@@ -132,7 +132,7 @@ stdenv.mkDerivation rec {
     "-Dusb-ids-path=${hwdata}/share/hwdata/usb.ids"
   ] ++ lib.optionals (!withPolkit) [
     "-Dpolkit=disabled"
-  ] ++ lib.optionals (!stdenv.isLinux) [
+  ] ++ lib.optionals (!stdenv.hostPlatform.isLinux) [
     "-Dlibcap-ng=disabled"
     "-Degl=disabled"
   ] ++ lib.optionals stdenv.hostPlatform.isMusl [