2006-10-23 18:43:55 +01:00
|
|
|
{stdenv, fetchurl, glibc}:
|
2005-08-28 00:05:50 +01:00
|
|
|
|
2006-10-23 18:43:55 +01:00
|
|
|
assert stdenv.isLinux;
|
2005-08-28 00:05:50 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2006-06-25 01:44:53 +01:00
|
|
|
name = "dietlibc-0.30";
|
2005-08-28 00:05:50 +01:00
|
|
|
src = fetchurl {
|
2006-10-12 14:50:54 +01:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/dietlibc-0.30.tar.bz2;
|
2006-06-25 01:44:53 +01:00
|
|
|
md5 = "2465d652fff6f1fad3da3b98e60e83c9";
|
2005-08-28 00:05:50 +01:00
|
|
|
};
|
2006-10-18 12:25:10 +01:00
|
|
|
builder = ./builder.sh;
|
2006-11-03 11:09:06 +00:00
|
|
|
|
2006-10-23 18:43:55 +01:00
|
|
|
inherit glibc;
|
2006-11-03 11:09:06 +00:00
|
|
|
kernelHeaders = glibc.kernelHeaders;
|
2006-10-19 11:54:40 +01:00
|
|
|
|
2006-10-20 17:01:11 +01: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.
|
2007-01-22 14:38:18 +00:00
|
|
|
./no-wchar.patch
|
|
|
|
|
|
|
|
# Fix to get DNS resolution to work on 64-bit platforms. Taken
|
|
|
|
# from 0.31 CVS.
|
|
|
|
./dns64.patch
|
2006-10-20 17:01:11 +01:00
|
|
|
|
|
|
|
];
|
2005-08-28 00:05:50 +01:00
|
|
|
}
|