diff --git a/pkgs/development/libraries/glib/default.nix b/pkgs/development/libraries/glib/default.nix index 538a40615f14..9a3303684a15 100644 --- a/pkgs/development/libraries/glib/default.nix +++ b/pkgs/development/libraries/glib/default.nix @@ -68,12 +68,17 @@ stdenv.mkDerivation rec { configureFlags = optional stdenv.isDarwin "--disable-compile-warnings" - ++ optional stdenv.isFreeBSD "--with-libiconv=gnu" - ++ optional stdenv.isSunOS ["--disable-modular-tests" "--with-libiconv"]; + ++ optional (stdenv.isFreeBSD || stdenv.isSunOS) "--with-libiconv=gnu" + ++ optional stdenv.isSunOS "--disable-dtrace"; NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin " -lintl" + optionalString stdenv.isSunOS " -DBSD_COMP"; + preConfigure = if !stdenv.isSunOS then null else + '' + sed -i -e 's|inotify.h|foobar-inotify.h|g' configure + ''; + preBuild = optionalString stdenv.isDarwin '' export MACOSX_DEPLOYMENT_TARGET=