about summary refs log tree commit diff
path: root/pkgs/development/python2-modules/pygtk/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python2-modules/pygtk/default.nix')
-rw-r--r--pkgs/development/python2-modules/pygtk/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/python2-modules/pygtk/default.nix b/pkgs/development/python2-modules/pygtk/default.nix
index 003474ee8582..68a7dba4c8e3 100644
--- a/pkgs/development/python2-modules/pygtk/default.nix
+++ b/pkgs/development/python2-modules/pygtk/default.nix
@@ -37,8 +37,8 @@ buildPythonPackage rec {
 
   buildPhase = "buildPhase";
 
-  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-ObjC"
-    + lib.optionalString (stdenv.isDarwin && stdenv.isAarch64) " -lpython2.7";
+  env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.hostPlatform.isDarwin "-ObjC"
+    + lib.optionalString (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) " -lpython2.7";
 
   installPhase = "installPhase";