glib: Use libiconvOrNull' instead of libiconv'.

This commit is contained in:
Ludovic Courtès 2012-08-21 15:53:43 +02:00
parent f959a26e33
commit 11602dad82

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconv, zlib, libffi { stdenv, fetchurl, pkgconfig, gettext, perl, libiconvOrNull, zlib, libffi
, python, pcre }: , python, pcre }:
# TODO: # TODO:
@ -20,7 +20,11 @@ stdenv.mkDerivation rec {
}; };
# configure script looks for d-bus but it is only needed for tests # configure script looks for d-bus but it is only needed for tests
buildInputs = [ pcre ] ++ stdenv.lib.optional (!stdenv.isLinux) libiconv; buildInputs = [ pcre ]
++ (if libiconvOrNull != null
then [ libiconvOrNull ]
else []);
buildNativeInputs = [ perl pkgconfig gettext python ]; buildNativeInputs = [ perl pkgconfig gettext python ];
propagatedBuildInputs = [ zlib libffi ]; propagatedBuildInputs = [ zlib libffi ];