From 87cc7ea1433e5f6cd550c01416fedaba08d1d96a Mon Sep 17 00:00:00 2001 From: "Jason \"Don\" O'Conal" Date: Thu, 15 Aug 2013 13:39:35 +1000 Subject: [PATCH] gobjectIntrospection: fix build on darwin --- pkgs/development/libraries/glib/default.nix | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/pkgs/development/libraries/glib/default.nix b/pkgs/development/libraries/glib/default.nix index b2c5966c26797..7da6b97365fed 100644 --- a/pkgs/development/libraries/glib/default.nix +++ b/pkgs/development/libraries/glib/default.nix @@ -46,12 +46,7 @@ stdenv.mkDerivation rec { preConfigure = "autoreconf -fi"; configureFlags = "--with-pcre=system --disable-fam"; - postConfigure = - optionalString stdenv.isDarwin ('' - sed '24 i #include ' - '' + /* Disable the NeXTstep back-end because stdenv.gcc doesn't support Objective-C. */ '' - sed -i configure -e's/glib_have_cocoa=yes/glib_have_cocoa=no/g' - ''); + postConfigure = "sed '/SANE_MALLOC_PROTOS/s,^,//,' -i config.h"; NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin "-lintl";