at master 1.1 kB view raw
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 enableParallelBuilding = true; 35 36 preCheck = '' 37 # Since `localhost' can't be resolved in a chroot, work around it. 38 sed -i -e 's/localhost/127.0.0.1/g' src/test*/*.[ch] 39 ''; 40 41 # Disabled because the tests can time-out. 42 doCheck = false; 43 44 meta = 45 with lib; 46 { 47 description = "Embeddable HTTP server library"; 48 49 longDescription = '' 50 GNU libmicrohttpd is a small C library that is supposed to make 51 it easy to run an HTTP server as part of another application. 52 ''; 53 54 license = licenses.lgpl2Plus; 55 56 homepage = "https://www.gnu.org/software/libmicrohttpd/"; 57 58 maintainers = with maintainers; [ fpletz ]; 59 platforms = platforms.unix; 60 } 61 // meta; 62})