From 8f7adffe4deefafc40f170194718e7837bf9208a Mon Sep 17 00:00:00 2001 From: Johannes Bornhold Date: Fri, 23 Dec 2016 22:20:30 +0100 Subject: [PATCH] pygtk: Add flag -ObjC for darwin Had to add this so that it was able to parse the headers from the frameworks. --- pkgs/development/python-modules/pygtk/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/pygtk/default.nix b/pkgs/development/python-modules/pygtk/default.nix index 7d0896c1fb8..0940ef00ac9 100644 --- a/pkgs/development/python-modules/pygtk/default.nix +++ b/pkgs/development/python-modules/pygtk/default.nix @@ -3,7 +3,7 @@ buildPythonPackage rec { name = "pygtk-2.24.0"; - + disabled = isPy3k; src = fetchurl { @@ -20,6 +20,8 @@ buildPythonPackage rec { buildPhase = "buildPhase"; + NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-ObjC"; + installPhase = "installPhase"; checkPhase = stdenv.lib.optionalString (libglade == null)