Files
nixpkgs/pkgs/development/libraries/libmicrohttpd/generic.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

63 lines
1.1 KiB
Nix

{
lib,
stdenv,
libgcrypt,
curl,
gnutls,
pkg-config,
libiconv,
libintl,
version,
src,
meta ? { },
}:
stdenv.mkDerivation (finalAttrs: {
pname = "libmicrohttpd";
inherit version src;
outputs = [
"out"
"dev"
"devdoc"
"info"
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libgcrypt
curl
gnutls
libiconv
libintl
];
enableParallelBuilding = true;
preCheck = ''
# Since `localhost' can't be resolved in a chroot, work around it.
sed -i -e 's/localhost/127.0.0.1/g' src/test*/*.[ch]
'';
# Disabled because the tests can time-out.
doCheck = false;
meta =
{
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 = lib.licenses.lgpl2Plus;
homepage = "https://www.gnu.org/software/libmicrohttpd/";
maintainers = with lib.maintainers; [ fpletz ];
platforms = lib.platforms.unix;
}
// meta;
})