2006-08-07 00:24:48 +02:00
|
|
|
{stdenv, fetchurl, gccCross ? null, binutilsCross ? null}:
|
2006-07-08 12:07:57 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-01-01 20:41:53 +01:00
|
|
|
name = "busybox-1.2.2.1";
|
2006-07-08 12:07:57 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2007-01-01 20:41:53 +01:00
|
|
|
url = http://busybox.net/downloads/busybox-1.2.2.1.tar.bz2;
|
|
|
|
md5 = "153f7a4d7580c19ed6f6570f039b64b5";
|
2006-07-08 12:07:57 +02:00
|
|
|
};
|
|
|
|
|
2006-08-07 00:24:48 +02:00
|
|
|
# inherit gccCross;
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2006-08-07 00:24:48 +02:00
|
|
|
# buildinputs = [binutilsCross];
|
2009-04-23 15:31:10 +02:00
|
|
|
|
2006-07-08 12:07:57 +02:00
|
|
|
# fixme, need a decent config for MIPS or so
|
2009-04-23 15:31:10 +02:00
|
|
|
preBuild = ''
|
|
|
|
installFlags="PREFIX=$out"
|
|
|
|
cp ${./x86-config-1.2} .config
|
|
|
|
make include/bb_config.h
|
|
|
|
'';
|
2006-07-08 12:07:57 +02:00
|
|
|
}
|