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