Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 41 lines 1.2 kB view raw
1{ stdenv, fetchurl, libgcrypt, curl, gnutls, pkgconfig, libiconv, libintlOrEmpty }: 2 3stdenv.mkDerivation rec { 4 name = "libmicrohttpd-${version}"; 5 version = "0.9.58"; 6 7 src = fetchurl { 8 url = "mirror://gnu/libmicrohttpd/${name}.tar.gz"; 9 sha256 = "1wq17qvizis7bsyvyw1gnfycvivssncngziddnyrbzv2dhvy24bs"; 10 }; 11 12 outputs = [ "out" "dev" "devdoc" "info" ]; 13 nativeBuildInputs = [ pkgconfig ]; 14 buildInputs = [ libgcrypt curl gnutls ] 15 ++ stdenv.lib.optionals stdenv.isDarwin [ libiconv libintlOrEmpty ]; 16 17 preCheck = '' 18 # Since `localhost' can't be resolved in a chroot, work around it. 19 sed -ie 's/localhost/127.0.0.1/g' src/test*/*.[ch] 20 ''; 21 22 # Disabled because the tests can time-out. 23 doCheck = false; 24 25 meta = with stdenv.lib; { 26 description = "Embeddable HTTP server library"; 27 28 longDescription = '' 29 GNU libmicrohttpd is a small C library that is supposed to make 30 it easy to run an HTTP server as part of another application. 31 ''; 32 33 license = licenses.lgpl2Plus; 34 35 homepage = http://www.gnu.org/software/libmicrohttpd/; 36 37 maintainers = with maintainers; [ eelco vrthra fpletz ]; 38 platforms = platforms.unix; 39 }; 40} 41