2008-08-09 08:40:37 +00:00
|
|
|
{stdenv, fetchurl, perl, bison, mktemp, kernel
|
|
|
|
, version ? "1.5"
|
|
|
|
, sha256 ? "1izhf8kscjymsvsvhcqw9awnmp94vwv70zdj09srg9bkpjj0n017"
|
|
|
|
, subdir ? ""
|
|
|
|
}:
|
2005-08-27 20:48:05 +00:00
|
|
|
|
2006-11-25 00:28:15 +00:00
|
|
|
assert stdenv.isLinux;
|
2005-08-27 20:48:05 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2008-08-09 08:40:37 +00:00
|
|
|
name = "klibc-${version}";
|
2005-08-27 20:48:05 +00:00
|
|
|
builder = ./builder.sh;
|
|
|
|
src = fetchurl {
|
2008-08-09 08:40:37 +00:00
|
|
|
url = "mirror://kernel/linux/libs/klibc/${subdir}klibc-${version}.tar.bz2";
|
|
|
|
inherit sha256;
|
2008-08-08 19:05:32 +00:00
|
|
|
# url = mirror://kernel/linux/libs/klibc/Testing/klibc-1.5.14.tar.bz2;
|
|
|
|
# sha256 = "1cmrqpgamnv2ns7dlxjm61zc88dxm4ff0aya413ij1lmhp2h2sfc";
|
2005-08-27 20:48:05 +00:00
|
|
|
};
|
2006-11-26 23:24:40 +00:00
|
|
|
inherit kernel;
|
2006-11-25 21:49:42 +00:00
|
|
|
buildInputs = [perl bison mktemp];
|
2008-08-08 19:05:32 +00:00
|
|
|
#patches = [./install.patch];
|
2005-08-27 20:48:05 +00:00
|
|
|
}
|