avahi: use libiconv if needed

svn path=/nixpkgs/trunk/; revision=33624
This commit is contained in:
Yury G. Kudryashov 2012-04-05 15:11:19 +00:00
parent 7aeb6ef2bb
commit b4e5ce8de5
2 changed files with 6 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ fetchurl, stdenv, pkgconfig, libdaemon, dbus, perl, perlXMLParser
, expat, gettext, intltool, glib, qt4 ? null, lib
, expat, gettext, intltool, glib, qt4 ? null, libiconvOrEmpty
, qt4Support ? false
, withLibdnssdCompat ? false }:
@ -16,7 +16,8 @@ stdenv.mkDerivation rec {
patches = [ ./no-mkdir-localstatedir.patch ];
buildInputs = [ libdaemon dbus perl perlXMLParser glib expat ]
++ (lib.optional qt4Support qt4);
++ (stdenv.lib.optional qt4Support qt4)
++ libiconvOrEmpty;
buildNativeInputs = [ pkgconfig gettext intltool ];

View File

@ -4084,9 +4084,11 @@ let
libiconv = callPackage ../development/libraries/libiconv { };
libiconvOrEmpty = if (libiconvOrNull == null) then [] else libiconv;
libiconvOrNull = if gcc ? libc then null else libiconv;
libiconvOrLibc = if gcc ? libc then gcc.libc else libiconv;
libiconvOrLibc = if (libiconvOrNull == null) then gcc.libc else libiconv;
libid3tag = callPackage ../development/libraries/libid3tag { };