nixpkgs/pkgs/development/libraries/libmicrohttpd/default.nix

38 lines
1022 B
Nix
Raw Normal View History

2016-06-21 10:53:26 +03:00
{ stdenv, fetchurl, libgcrypt, curl, gnutls, pkgconfig }:
stdenv.mkDerivation rec {
2016-06-21 10:53:26 +03:00
name = "libmicrohttpd-0.9.50";
src = fetchurl {
url = "mirror://gnu/libmicrohttpd/${name}.tar.gz";
2016-06-21 10:53:26 +03:00
sha256 = "1mzbqr6sqisppz88mh73bbh5sw57g8l87qvhcjdx5pmbd183idni";
};
outputs = [ "out" "dev" "devdoc" ];
2016-06-21 10:53:26 +03:00
buildInputs = [ libgcrypt curl gnutls pkgconfig ];
2016-06-21 10:53:26 +03:00
preCheck = ''
# Since `localhost' can't be resolved in a chroot, work around it.
2016-06-21 10:53:26 +03:00
sed -ie 's/localhost/127.0.0.1/g' src/test*/*.[ch]
'';
# Disabled because the tests can time-out.
doCheck = false;
2016-06-21 10:53:26 +03:00
meta = with stdenv.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.
'';
2016-06-21 10:53:26 +03:00
license = licenses.lgpl2Plus;
homepage = http://www.gnu.org/software/libmicrohttpd/;
2016-06-21 10:53:26 +03:00
maintainers = [ maintainers.eelco maintainers.vrthra ];
platforms = platforms.linux;
};
}