···1-{stdenv, fetchurl, curl, libgcrypt}:
00000000000000000002000003stdenv.mkDerivation rec {
4- name = "libmicrohttpd-0.9.38";
56 src = fetchurl {
7 url = "mirror://gnu/libmicrohttpd/${name}.tar.gz";
8- sha256 = "08g7p4l0p2fsjj8ayl68zq1bqgrn0pck19bm8yd7k61whvfv9wld";
9 };
1011- buildInputs = [ curl libgcrypt ];
0001213- preCheck =
14- # Since `localhost' can't be resolved in a chroot, work around it.
15- '' for i in "src/test"*"/"*.[ch]
16- do
17- sed -i "$i" -es/localhost/127.0.0.1/g
18- done
19- '';
00000002021 # Disabled because the tests can time-out.
22 doCheck = false;
2324 meta = {
25 description = "Embeddable HTTP server library";
26-27- longDescription = ''
28- GNU libmicrohttpd is a small C library that is supposed to make
29- it easy to run an HTTP server as part of another application.
30- '';
31-32- license = stdenv.lib.licenses.lgpl2Plus;
33-34 homepage = http://www.gnu.org/software/libmicrohttpd/;
35-36- maintainers = [ ];
037 };
38}