Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 libgcrypt, 5 curl, 6 gnutls, 7 pkg-config, 8 libiconv, 9 libintl, 10 version, 11 src, 12 meta ? { }, 13}: 14 15stdenv.mkDerivation (finalAttrs: { 16 pname = "libmicrohttpd"; 17 inherit version src; 18 19 outputs = [ 20 "out" 21 "dev" 22 "devdoc" 23 "info" 24 ]; 25 nativeBuildInputs = [ pkg-config ]; 26 buildInputs = [ 27 libgcrypt 28 curl 29 gnutls 30 libiconv 31 libintl 32 ]; 33 34 preCheck = '' 35 # Since `localhost' can't be resolved in a chroot, work around it. 36 sed -i -e 's/localhost/127.0.0.1/g' src/test*/*.[ch] 37 ''; 38 39 # Disabled because the tests can time-out. 40 doCheck = false; 41 42 meta = 43 with lib; 44 { 45 description = "Embeddable HTTP server library"; 46 47 longDescription = '' 48 GNU libmicrohttpd is a small C library that is supposed to make 49 it easy to run an HTTP server as part of another application. 50 ''; 51 52 license = licenses.lgpl2Plus; 53 54 homepage = "https://www.gnu.org/software/libmicrohttpd/"; 55 56 maintainers = with maintainers; [ fpletz ]; 57 platforms = platforms.unix; 58 } 59 // meta; 60})