glib: fix build on darwin

* add libintlOrEmpty to build inputs
* add -lintl to CFLAGS
This commit is contained in:
Jason \"Don\" O'Conal 2013-07-04 14:54:20 +10:00 committed by Rok Garbas
parent 8ac7701c4c
commit 8c54b95273

View File

@ -1,5 +1,5 @@
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconvOrEmpty, zlib, libffi
, python, pcre, libelf }:
, python, pcre, libelf, libintlOrEmpty }:
# TODO:
# * Add gio-module-fam
@ -33,7 +33,7 @@ stdenv.mkDerivation rec {
};
# configure script looks for d-bus but it is only needed for tests
buildInputs = [ libelf ];
buildInputs = [ libelf ] ++ libintlOrEmpty;
nativeBuildInputs = [ perl pkgconfig gettext python ];
@ -43,6 +43,8 @@ stdenv.mkDerivation rec {
postConfigure = "sed '/SANE_MALLOC_PROTOS/s,^,//,' -i config.h";
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-lintl";
enableParallelBuilding = true;
postInstall = ''rm -rvf $out/share/gtk-doc'';