nixpkgs/pkgs/os-specific/linux/dietlibc/default.nix
Eelco Dolstra c696045af0 * dietlibc: copy sys/user.h from Glibc, binutils needs it.
* dietlibc: rename the PC macro to __DIETLIBC_PC to prevent name
  clashes.

svn path=/nixpkgs/trunk/; revision=6769
2006-10-19 10:54:40 +00:00

19 lines
478 B
Nix

{stdenv, fetchurl}:
assert stdenv.system == "i686-linux";
stdenv.mkDerivation {
name = "dietlibc-0.30";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/dietlibc-0.30.tar.bz2;
md5 = "2465d652fff6f1fad3da3b98e60e83c9";
};
builder = ./builder.sh;
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];
}