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