mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-29 17:10:48 +00:00
e8261201d8
some programs (such as module-init-tools) need it. * Remove module-init-tools-static, it now builds out of the box with dietlibc. svn path=/nixpkgs/trunk/; revision=6938
29 lines
625 B
Nix
29 lines
625 B
Nix
{stdenv, fetchurl, glibc}:
|
|
|
|
assert stdenv.isLinux;
|
|
|
|
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 glibc;
|
|
kernelHeaders = glibc.kernelHeaders;
|
|
|
|
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
|
|
|
|
];
|
|
}
|