···3assert stdenv.isLinux;
45stdenv.mkDerivation {
6- name = "dietlibc-0.31";
7 src = fetchurl {
8- url = mirror://kernel/linux/libs/dietlibc/dietlibc-0.31.tar.bz2;
9- sha256 = "1kanrwjcmqs28z8arj9py9mbgjx5rgvi7il484pgaizpcxm3sqcr";
10 };
11 builder = ./builder.sh;
12···23 # wchar.h declares lots of functions that don't actually exist.
24 # Remove them.
25 ./no-wchar.patch
00002627 # Get lseek64 working on x86_64. From
28 # http://svn.annvix.org/cgi-bin/viewvc.cgi/packages/releases/2.0-CURRENT/dietlibc/SOURCES
···3assert stdenv.isLinux;
45stdenv.mkDerivation {
6+ name = "dietlibc-0.30";
7 src = fetchurl {
8+ url = mirror://kernel/linux/libs/dietlibc/dietlibc-0.30.tar.bz2;
9+ md5 = "2465d652fff6f1fad3da3b98e60e83c9";
10 };
11 builder = ./builder.sh;
12···23 # wchar.h declares lots of functions that don't actually exist.
24 # Remove them.
25 ./no-wchar.patch
26+27+ # Fix to get DNS resolution to work on 64-bit platforms. Taken
28+ # from 0.31 CVS.
29+ ./dns64.patch
3031 # Get lseek64 working on x86_64. From
32 # http://svn.annvix.org/cgi-bin/viewvc.cgi/packages/releases/2.0-CURRENT/dietlibc/SOURCES