2024-04-21 15:54:59 +00:00
|
|
|
{ lib, stdenv, libgcrypt, curl, gnutls, pkg-config, libiconv, libintl, version, src, meta ? {} }:
|
2022-10-21 18:38:19 +00:00
|
|
|
|
2024-07-31 10:19:44 +00:00
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libmicrohttpd";
|
2020-12-07 07:45:13 +00:00
|
|
|
inherit version src;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" "info" ];
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libgcrypt curl gnutls libiconv libintl ];
|
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
# Since `localhost' can't be resolved in a chroot, work around it.
|
|
|
|
sed -ie 's/localhost/127.0.0.1/g' src/test*/*.[ch]
|
|
|
|
'';
|
|
|
|
|
|
|
|
# Disabled because the tests can time-out.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Embeddable HTTP server library";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
GNU libmicrohttpd is a small C library that is supposed to make
|
|
|
|
it easy to run an HTTP server as part of another application.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = licenses.lgpl2Plus;
|
|
|
|
|
|
|
|
homepage = "https://www.gnu.org/software/libmicrohttpd/";
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
maintainers = with maintainers; [ fpletz ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.unix;
|
2024-07-31 10:19:44 +00:00
|
|
|
} // meta;
|
|
|
|
})
|