forked from mirrors/nixpkgs
GNU libc: Improve description and name for the Hurd; fix `needsPorts'.
svn path=/nixpkgs/trunk/; revision=33833
This commit is contained in:
parent
46ec48923b
commit
f59b9490ec
|
@ -16,7 +16,8 @@ let
|
|||
|
||||
needsPortsNative = stdenv.isMips || stdenv.isArm;
|
||||
needsPortsCross = cross.arch == "mips" || cross.arch == "arm";
|
||||
needsPorts = if (stdenv ? cross) && stdenv.cross != null then true
|
||||
needsPorts =
|
||||
if (stdenv ? cross) && stdenv.cross != null && hurdHeaders == null then true
|
||||
else if cross == null then needsPortsNative
|
||||
else needsPortsCross;
|
||||
|
||||
|
@ -181,7 +182,8 @@ stdenv.mkDerivation ({
|
|||
|
||||
meta = {
|
||||
homepage = http://www.gnu.org/software/libc/;
|
||||
description = "The GNU C Library";
|
||||
description = "The GNU C Library"
|
||||
+ stdenv.lib.optionalString (hurdHeaders != null) ", for GNU/Hurd";
|
||||
|
||||
longDescription =
|
||||
'' Any Unix-like operating system needs a C library: the library which
|
||||
|
|
|
@ -14,7 +14,9 @@ let
|
|||
cross = if gccCross != null then gccCross.target else null;
|
||||
in
|
||||
build cross ({
|
||||
name = "glibc${if debugSymbols then "-debug" else ""}";
|
||||
name = "glibc"
|
||||
+ stdenv.lib.optionalString (hurdHeaders != null) "-hurd"
|
||||
+ stdenv.lib.optionalString debugSymbols "-debug";
|
||||
|
||||
inherit fetchurl stdenv kernelHeaders installLocales profilingLibraries
|
||||
gccCross;
|
||||
|
|
Loading…
Reference in a new issue