3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/uclibc/default.nix
Armijn Hemel 4655f9a723 add configuration for powerpc. Due to some bug we use a post-0.9.28 snapshot.
Scary ;)

svn path=/nixpkgs/trunk/; revision=4475
2006-01-01 01:55:26 +00:00

26 lines
876 B
Nix

{stdenv, fetchurl, gccCross, kernelHeadersCross, binutilsCross, cross}:
stdenv.mkDerivation {
builder = ./builder.sh;
name = "uClibc-0.9.28";
src = fetchurl {
url = http://www.uclibc.org/downloads/snapshots/uClibc-20051001.tar.bz2;
md5 = "5442033ed956d506f9a810cf70dc3744";
#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];
inherit cross;
}