mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
Merge branch 'master' of github.com:NixOS/nixpkgs
This commit is contained in:
commit
e3605e7e76
@ -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 ];
|
||||
|
@ -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";
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user