2006-10-23 10:43:55 -07:00
|
|
|
{stdenv, fetchurl, glibc}:
|
2005-08-27 16:05:50 -07:00
|
|
|
|
2006-10-23 10:43:55 -07:00
|
|
|
assert stdenv.isLinux;
|
2005-08-27 16:05:50 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2006-06-24 17:44:53 -07:00
|
|
|
name = "dietlibc-0.30";
|
2005-08-27 16:05:50 -07:00
|
|
|
src = fetchurl {
|
2006-10-12 06:50:54 -07:00
|
|
|
url = http://nix.cs.uu.nl/dist/tarballs/dietlibc-0.30.tar.bz2;
|
2006-06-24 17:44:53 -07:00
|
|
|
md5 = "2465d652fff6f1fad3da3b98e60e83c9";
|
2005-08-27 16:05:50 -07:00
|
|
|
};
|
2006-10-18 04:25:10 -07:00
|
|
|
builder = ./builder.sh;
|
2006-10-23 10:43:55 -07:00
|
|
|
inherit glibc;
|
2006-10-19 03:54:40 -07:00
|
|
|
|
2006-10-20 09:01:11 -07: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-27 16:05:50 -07:00
|
|
|
}
|