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";