glib-2.28.x: blind commit that hopefully fixes a lot of build errors on Darwin

It appears that users of glibc expect to be able to link libintl via pkgconfig.
On Linux, this always works because that library comes with glibc, but on other
platforms gettext is required to fulfill the dependency.

I don't have access to Darwin, so I cannot actually test this change. If any
runs into problems because of this modification, please feel free to revert it!

svn path=/nixpkgs/trunk/; revision=31723
This commit is contained in:
Peter Simons 2012-01-19 21:43:17 +00:00
parent e2633477c0
commit 1bc803cb09

View File

@ -17,7 +17,8 @@ stdenv.mkDerivation rec {
buildInputs = stdenv.lib.optional (!stdenv.isLinux) libiconv;
buildNativeInputs = [ perl pkgconfig gettext xz ];
propagatedBuildInputs = [ zlib ];
propagatedBuildInputs = [ zlib ]
++ stdenv.lib.optional (!stdenv.isLinux) gettext;
# glib buildsystem fails to find python, thus hardcodes python2.4 in #!
postInstall = ''