d0c7f39a60
other archs. svn path=/nixpkgs/trunk/; revision=4966
25 lines
891 B
Nix
25 lines
891 B
Nix
{stdenv, fetchurl, gccCross, kernelHeadersCross, binutilsCross, cross, mktemp}:
|
|
|
|
stdenv.mkDerivation {
|
|
builder = ./builder.sh;
|
|
name = "uClibc-0.9.28";
|
|
src = fetchurl {
|
|
url = http://www.uclibc.org/downloads/snapshots/uClibc-20060302.tar.bz2;
|
|
md5 = "3502da5973851a63625791545d459734";
|
|
#url = http://www.uclibc.org/downloads/uClibc-0.9.28.tar.bz2;
|
|
#md5 = "1ada58d919a82561061e4741fb6abd29";
|
|
};
|
|
config = if cross == "mips-linux"
|
|
then ./config-mips-linux
|
|
else if cross == "arm-linux"
|
|
then ./config-arm-linux
|
|
else if cross == "sparc-linux"
|
|
then ./config-sparc-linux
|
|
else if cross == "powerpc-linux"
|
|
then ./config-powerpc-linux
|
|
else "";
|
|
|
|
inherit kernelHeadersCross;
|
|
buildInputs = [gccCross binutilsCross mktemp];
|
|
inherit cross;
|
|
}
|