2005-08-28 01:05:50 +02:00
|
|
|
{stdenv, fetchurl}:
|
|
|
|
|
|
|
|
assert stdenv.system == "i686-linux";
|
|
|
|
|
|
|
|
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-10-19 12:54:40 +02:00
|
|
|
inherit (stdenv) glibc;
|
|
|
|
|
|
|
|
# dietlibc's sigcontext.h provides a macro called PC(), which is
|
|
|
|
# rather intrusive (e.g., binutils fails to compile because of it).
|
|
|
|
# Rename it.
|
|
|
|
patches = [./pc.patch];
|
2005-08-28 01:05:50 +02:00
|
|
|
}
|