Files
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02: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 =
with lib;
{
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/";
maintainers = with maintainers; [ fpletz ];
platforms = platforms.unix;
}
// meta;
})