2005-08-28 00:05:50 +01:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
assert stdenv.system == "i686-linux";
|
|
|
|
|
|
|
|
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-10-19 11:54:40 +01:00
|
|
|
inherit (stdenv) glibc;
|
|
|
|
|
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.
|
|
|
|
./no-wchar.h
|
|
|
|
|
|
|
|
];
|
2005-08-28 00:05:50 +01:00
|
|
|
}
|