libmicrohttpd: 0.9.44 -> 0.9.50

This commit is contained in:
Rahul Gopinath 2016-06-21 00:53:26 -07:00
parent e5740b2e8e
commit 9f159b4694

View file

@ -1,29 +1,25 @@
{ lib, stdenv, fetchurl, libgcrypt }: { stdenv, fetchurl, libgcrypt, curl, gnutls, pkgconfig }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libmicrohttpd-0.9.44"; name = "libmicrohttpd-0.9.50";
src = fetchurl { src = fetchurl {
url = "mirror://gnu/libmicrohttpd/${name}.tar.gz"; url = "mirror://gnu/libmicrohttpd/${name}.tar.gz";
sha256 = "07j1p21rvbrrfpxngk8xswzkmjkh94bp1971xfjh1p0ja709qwzj"; sha256 = "1mzbqr6sqisppz88mh73bbh5sw57g8l87qvhcjdx5pmbd183idni";
}; };
outputs = [ "dev" "out" "docdev" ]; outputs = [ "dev" "out" "docdev" ];
buildInputs = [ libgcrypt curl gnutls pkgconfig ];
buildInputs = [ libgcrypt ]; preCheck = ''
preCheck =
# Since `localhost' can't be resolved in a chroot, work around it. # Since `localhost' can't be resolved in a chroot, work around it.
'' for i in "src/test"*"/"*.[ch] sed -ie 's/localhost/127.0.0.1/g' src/test*/*.[ch]
do '';
sed -i "$i" -es/localhost/127.0.0.1/g
done
'';
# Disabled because the tests can time-out. # Disabled because the tests can time-out.
doCheck = false; doCheck = false;
meta = { meta = with stdenv.lib; {
description = "Embeddable HTTP server library"; description = "Embeddable HTTP server library";
longDescription = '' longDescription = ''
@ -31,10 +27,10 @@ stdenv.mkDerivation rec {
it easy to run an HTTP server as part of another application. it easy to run an HTTP server as part of another application.
''; '';
license = lib.licenses.lgpl2Plus; license = licenses.lgpl2Plus;
homepage = http://www.gnu.org/software/libmicrohttpd/; homepage = http://www.gnu.org/software/libmicrohttpd/;
maintainers = [ lib.maintainers.eelco ]; maintainers = [ maintainers.eelco maintainers.vrthra ];
}; };
} }