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