1{ lib, stdenv, fetchurl, libgcrypt }: 2 3stdenv.mkDerivation rec { 4 name = "libmicrohttpd-0.9.44"; 5 6 src = fetchurl { 7 url = "mirror://gnu/libmicrohttpd/${name}.tar.gz"; 8 sha256 = "07j1p21rvbrrfpxngk8xswzkmjkh94bp1971xfjh1p0ja709qwzj"; 9 }; 10 11 outputs = [ "out" "info" ]; 12 13 buildInputs = [ libgcrypt ]; 14 15 preCheck = 16 # Since `localhost' can't be resolved in a chroot, work around it. 17 '' for i in "src/test"*"/"*.[ch] 18 do 19 sed -i "$i" -es/localhost/127.0.0.1/g 20 done 21 ''; 22 23 # Disabled because the tests can time-out. 24 doCheck = false; 25 26 meta = { 27 description = "Embeddable HTTP server library"; 28 29 longDescription = '' 30 GNU libmicrohttpd is a small C library that is supposed to make 31 it easy to run an HTTP server as part of another application. 32 ''; 33 34 license = lib.licenses.lgpl2Plus; 35 36 homepage = http://www.gnu.org/software/libmicrohttpd/; 37 38 maintainers = [ lib.maintainers.eelco ]; 39 }; 40}