2006-10-23 19:43:55 +02:00
|
|
|
{stdenv, fetchurl, glibc}:
|
2005-08-28 01:05:50 +02:00
|
|
|
|
2006-10-23 19:43:55 +02:00
|
|
|
assert stdenv.isLinux;
|
2005-08-28 01:05:50 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2006-06-25 02:44:53 +02:00
|
|
|
name = "dietlibc-0.30";
|
2005-08-28 01:05:50 +02:00
|
|
|
src = fetchurl {
|
2006-10-12 15:50:54 +02:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/dietlibc-0.30.tar.bz2;
|
2006-06-25 02:44:53 +02:00
|
|
|
md5 = "2465d652fff6f1fad3da3b98e60e83c9";
|
2005-08-28 01:05:50 +02:00
|
|
|
};
|
2006-10-18 13:25:10 +02:00
|
|
|
builder = ./builder.sh;
|
2006-11-03 12:09:06 +01:00
|
|
|
|
2006-10-23 19:43:55 +02:00
|
|
|
inherit glibc;
|
2006-11-03 12:09:06 +01:00
|
|
|
kernelHeaders = glibc.kernelHeaders;
|
2006-10-19 12:54:40 +02:00
|
|
|
|
2006-10-20 18:01:11 +02:00
|
|
|
patches = [
|
|
|
|
|
|
|
|
# dietlibc's sigcontext.h provides a macro called PC(), which is
|
|
|
|
# rather intrusive (e.g., binutils fails to compile because of
|
|
|
|
# it). Rename it.
|
|
|
|
./pc.patch
|
|
|
|
|
|
|
|
# wchar.h declares lots of functions that don't actually exist.
|
|
|
|
# Remove them.
|
|
|
|
./no-wchar.h
|
|
|
|
|
|
|
|
];
|
2005-08-28 01:05:50 +02:00
|
|
|
}
|