Merge branch 'master' of github.com:NixOS/nixpkgs

This commit is contained in:
Eelco Dolstra 2012-08-21 14:27:18 -04:00
commit e3605e7e76
3 changed files with 14 additions and 4 deletions

View File

@ -1,4 +1,4 @@
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconv, zlib, libffi
{ stdenv, fetchurl, pkgconfig, gettext, perl, libiconvOrNull, zlib, libffi
, python, pcre }:
# TODO:
@ -20,7 +20,11 @@ stdenv.mkDerivation rec {
};
# 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 ];
propagatedBuildInputs = [ zlib libffi ];

View File

@ -30,7 +30,7 @@ let
lib.filter lib.isDerivation initialPath;
}
// {
// rec {
meta = {
description = "The default build environment for Unix packages in Nixpkgs";
@ -96,6 +96,9 @@ let
|| result.system == "armv7l-linux"
|| result.system == "mips64el-linux";
isGNU = result.system == "i686-gnu"; # GNU/Hurd
isGlibc = isGNU # useful for `stdenvNative'
|| isLinux
|| result.system == "x86_64-kfreebsd-gnu";
isSunOS = result.system == "i686-solaris"
|| result.system == "x86_64-solaris";
isCygwin = result.system == "i686-cygwin";

View File

@ -4146,7 +4146,10 @@ let
libiconvOrEmpty = if (libiconvOrNull == null) then [] else libiconv;
libiconvOrNull = if gcc ? libc then null else libiconv;
libiconvOrNull =
if ((gcc ? libc && (gcc.libc != null)) || stdenv.isGlibc)
then null
else libiconv;
libiconvOrLibc = if (libiconvOrNull == null) then gcc.libc else libiconv;