about summary refs log tree commit diff
path: root/pkgs/development/python2-modules/pygobject/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python2-modules/pygobject/default.nix')
-rw-r--r--pkgs/development/python2-modules/pygobject/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/python2-modules/pygobject/default.nix b/pkgs/development/python2-modules/pygobject/default.nix
index 00c98fba39af..3202c6e6af76 100644
--- a/pkgs/development/python2-modules/pygobject/default.nix
+++ b/pkgs/development/python2-modules/pygobject/default.nix
@@ -13,7 +13,7 @@ buildPythonPackage rec {
 
   outputs = [ "out" "devdoc" ];
 
-  patches = lib.optionals stdenv.isDarwin [
+  patches = lib.optionals stdenv.hostPlatform.isDarwin [
     ./pygobject-2.0-fix-darwin.patch
     (fetchpatch {
       url = "https://github.com/macports/macports-ports/raw/f2975d5bbbc2459c661905c5a850cc661fa32f55/python/py-gobject/files/py-gobject-dynamic_lookup-11.patch";