glib on darwin: disable warnings to avoid prototype errors

vcunat did some reformatting before pushing.
This commit is contained in:
Kevin Quick 2014-01-25 17:26:00 -07:00 committed by Vladimír Čunát
parent ef460bd170
commit 80adf16703

View File

@ -35,7 +35,7 @@ let
ver_maj = "2.38";
ver_min = "2";
in
with { inherit (stdenv.lib) optionalString; };
with { inherit (stdenv.lib) optional optionalString; };
stdenv.mkDerivation rec {
name = "glib-${ver_maj}.${ver_min}";
@ -55,9 +55,11 @@ stdenv.mkDerivation rec {
preConfigure = "autoreconf -fi";
configureFlags = stdenv.lib.optional stdenv.isSunOS "--disable-modular-tests";
configureFlags =
optional stdenv.isDarwin "--disable-compile-warnings"
++ optional stdenv.isSunOS "--disable-modular-tests";
CPPFLAGS = stdenv.lib.optionalString stdenv.isSunOS "-DBSD_COMP";
CPPFLAGS = optionalString stdenv.isSunOS "-DBSD_COMP";
NIX_CFLAGS_COMPILE = optionalString stdenv.isDarwin "-lintl";