nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ lib, stdenv, libgcrypt, curl, gnutls, pkg-config, libiconv, libintl, version, src }:
2
3stdenv.mkDerivation rec {
4 pname = "libmicrohttpd";
5 inherit version src;
6
7 outputs = [ "out" "dev" "devdoc" "info" ];
8 nativeBuildInputs = [ pkg-config ];
9 buildInputs = [ libgcrypt curl gnutls libiconv libintl ];
10
11 preCheck = ''
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]
14 '';
15
16 # Disabled because the tests can time-out.
17 doCheck = false;
18
19 meta = with lib; {
20 description = "Embeddable HTTP server library";
21
22 longDescription = ''
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.
25 '';
26
27 license = licenses.lgpl2Plus;
28
29 homepage = "https://www.gnu.org/software/libmicrohttpd/";
30
31 maintainers = with maintainers; [ eelco vrthra fpletz ];
32 platforms = platforms.unix;
33 };
34}