Trying to get coreutils cross-built with uclibc.

This involved fixing some buildInputs/buildNativeInputs in acl/attr,
and adding a libiconv in some places.


svn path=/nixpkgs/branches/stdenv-updates/; revision=20510
This commit is contained in:
Lluís Batlle i Rossell
2010-03-09 18:05:38 +00:00
parent 70b2dd393c
commit 6f9a783232
6 changed files with 25 additions and 5 deletions
+6 -1
View File
@@ -1,4 +1,4 @@
{stdenv, fetchurl, linuxHeaders, cross ? null, gccCross ? null}:
{stdenv, fetchurl, linuxHeaders, libiconv, cross ? null, gccCross ? null}:
assert stdenv.isLinux;
assert cross != null -> gccCross != null;
@@ -58,6 +58,11 @@ stdenv.mkDerivation {
(cd $out/include && ln -s $(ls -d ${linuxHeaders}/include/* | grep -v "scsi$") .)
sed -i s@/lib/@$out/lib/@g $out/lib/libc.so
'';
passthru = {
# Derivations may check for the existance of this attribute, to know what to link to.
inherit libiconv;
};
meta = {
homepage = http://www.uclibc.org/;