about summary refs log tree commit diff
path: root/pkgs/desktops/gnome-2/platform/GConf/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/desktops/gnome-2/platform/GConf/default.nix')
-rw-r--r--pkgs/desktops/gnome-2/platform/GConf/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/desktops/gnome-2/platform/GConf/default.nix b/pkgs/desktops/gnome-2/platform/GConf/default.nix
index 33430f453ab58..ea6730f88e2ee 100644
--- a/pkgs/desktops/gnome-2/platform/GConf/default.nix
+++ b/pkgs/desktops/gnome-2/platform/GConf/default.nix
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
   buildInputs = [ ORBit2 libxml2 ]
     # polkit requires pam, which requires shadow.h, which is not available on
     # darwin
-    ++ lib.optional (!stdenv.isDarwin) polkit;
+    ++ lib.optional (!stdenv.hostPlatform.isDarwin) polkit;
 
   propagatedBuildInputs = [ glib dbus-glib ];
 
@@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
 
   configureFlags =
     # fixes the "libgconfbackend-oldxml.so is not portable" error on darwin
-    lib.optionals stdenv.isDarwin [ "--enable-static" ];
+    lib.optionals stdenv.hostPlatform.isDarwin [ "--enable-static" ];
 
   postPatch = ''
     2to3 --write --nobackup gsettings/gsettings-schema-convert