2005-12-31 14:10:20 +00:00
|
|
|
{stdenv, fetchurl, gccCross, kernelHeadersCross, binutilsCross, cross}:
|
2005-11-28 11:19:16 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
builder = ./builder.sh;
|
|
|
|
name = "uClibc-0.9.28";
|
|
|
|
src = fetchurl {
|
2006-01-30 16:04:03 +00:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/uClibc-20051001.tar.bz2;
|
2006-01-01 01:55:26 +00:00
|
|
|
md5 = "5442033ed956d506f9a810cf70dc3744";
|
|
|
|
#url = http://www.uclibc.org/downloads/uClibc-0.9.28.tar.bz2;
|
|
|
|
#md5 = "1ada58d919a82561061e4741fb6abd29";
|
2005-11-28 11:19:16 +00:00
|
|
|
};
|
2005-12-31 14:10:20 +00:00
|
|
|
config = if cross == "mips-linux"
|
|
|
|
then ./config-mips-linux
|
|
|
|
else if cross == "arm-linux"
|
|
|
|
then ./config-arm-linux
|
2005-12-31 16:29:22 +00:00
|
|
|
else if cross == "sparc-linux"
|
|
|
|
then ./config-sparc-linux
|
2006-01-01 01:55:26 +00:00
|
|
|
else if cross == "powerpc-linux"
|
|
|
|
then ./config-powerpc-linux
|
2005-12-31 16:29:22 +00:00
|
|
|
else "";
|
2005-12-31 14:10:20 +00:00
|
|
|
|
|
|
|
inherit kernelHeadersCross;
|
|
|
|
buildInputs = [gccCross binutilsCross];
|
|
|
|
inherit cross;
|
2005-11-28 11:19:16 +00:00
|
|
|
}
|