mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 07:53:19 +00:00
fix travis evaluation by providing explicit libiconv for the rare cases
that need it, like uclibc
This commit is contained in:
parent
a78d164b1e
commit
d2a987d6e3
@ -1,4 +1,4 @@
|
||||
{stdenv, fetchurl, linuxHeaders, libiconv, cross ? null, gccCross ? null,
|
||||
{stdenv, fetchurl, linuxHeaders, libiconvReal, cross ? null, gccCross ? null,
|
||||
extraConfig ? ""}:
|
||||
|
||||
assert stdenv.isLinux;
|
||||
@ -95,7 +95,7 @@ stdenv.mkDerivation {
|
||||
|
||||
passthru = {
|
||||
# Derivations may check for the existance of this attribute, to know what to link to.
|
||||
inherit libiconv;
|
||||
libiconv = libiconvReal;
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
@ -6285,11 +6285,16 @@ let
|
||||
|
||||
libgsf = callPackage ../development/libraries/libgsf { };
|
||||
|
||||
# glibc provides libiconv so systems with glibc don't need to build libiconv
|
||||
# separately, but we also provide libiconvReal, which will always be a
|
||||
# standalone libiconv, just in case you want it
|
||||
libiconv =
|
||||
if stdenv.isGlibc
|
||||
then stdenv.cc.libc
|
||||
else callPackage ../development/libraries/libiconv { };
|
||||
|
||||
libiconvReal = callPackage ../development/libraries/libiconv { };
|
||||
|
||||
# On non-GNU systems we need GNU Gettext for libintl.
|
||||
libintlOrEmpty = stdenv.lib.optional (!stdenv.isLinux) gettext;
|
||||
|
||||
@ -9163,7 +9168,7 @@ let
|
||||
uclibc = callPackage ../os-specific/linux/uclibc { };
|
||||
|
||||
uclibcCross = lowPrio (callPackage ../os-specific/linux/uclibc {
|
||||
inherit fetchurl stdenv libiconv;
|
||||
inherit fetchurl stdenv libiconvReal;
|
||||
linuxHeaders = linuxHeadersCross;
|
||||
gccCross = gccCrossStageStatic;
|
||||
cross = assert crossSystem != null; crossSystem;
|
||||
|
Loading…
Reference in New Issue
Block a user