Merge pull request #258998 from pongo1231/libhttpserver

libhttpserver: init at 0.19.0

authored by

Sandro and committed by
GitHub
26b71def 31944cd8

+46
+46
pkgs/by-name/li/libhttpserver/package.nix
··· 1 + { stdenv 2 + , lib 3 + , fetchFromGitHub 4 + , autoconf 5 + , automake 6 + , libtool 7 + , gnutls 8 + , libmicrohttpd 9 + }: 10 + 11 + stdenv.mkDerivation rec { 12 + pname = "libhttpserver"; 13 + version = "0.19.0"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "etr"; 17 + repo = pname; 18 + rev = version; 19 + sha256 = "sha256-Pc3Fvd8D4Ymp7dG9YgU58mDceOqNfhWE1JtnpVaNx/Y="; 20 + }; 21 + 22 + nativeBuildInputs = [ autoconf automake libtool ]; 23 + 24 + buildInputs = [ gnutls libmicrohttpd ]; 25 + 26 + enableParallelBuilding = true; 27 + 28 + postPatch = '' 29 + patchShebangs ./bootstrap 30 + ''; 31 + 32 + preConfigure = '' 33 + ./bootstrap 34 + ''; 35 + 36 + configureFlags = [ "--enable-same-directory-build" ]; 37 + 38 + meta = with lib; { 39 + description = "C++ library for creating an embedded Rest HTTP server (and more)"; 40 + homepage = "https://github.com/etr/libhttpserver"; 41 + license = licenses.lgpl21Plus; 42 + maintainers = with maintainers; [ pongo1231 ]; 43 + platforms = platforms.unix; 44 + broken = stdenv.isDarwin; # configure: error: cannot find required auxiliary files: ltmain.sh 45 + }; 46 + }