1 { lib, stdenv, libgcrypt, curl, gnutls, pkg-config, libiconv, libintl, version, src, meta ? {} }:
7 stdenv.mkDerivation rec {
8 pname = "libmicrohttpd";
11 outputs = [ "out" "dev" "devdoc" "info" ];
12 nativeBuildInputs = [ pkg-config ];
13 buildInputs = [ libgcrypt curl gnutls libiconv libintl ];
16 # Since `localhost' can't be resolved in a chroot, work around it.
17 sed -ie 's/localhost/127.0.0.1/g' src/test*/*.[ch]
20 # Disabled because the tests can time-out.
24 description = "Embeddable HTTP server library";
27 GNU libmicrohttpd is a small C library that is supposed to make
28 it easy to run an HTTP server as part of another application.
31 license = licenses.lgpl2Plus;
33 homepage = "https://www.gnu.org/software/libmicrohttpd/";
35 maintainers = with maintainers; [ eelco vrthra fpletz ];
36 platforms = platforms.unix;