Merge pull request #32579 from leenaars/lwan

lwan: init -> 0.1

authored by Michael Raskin and committed by GitHub fdcbb263 e9dd9967

+37
+35
pkgs/servers/http/lwan/default.nix
···
··· 1 + { stdenv, fetchFromGitHub, pkgconfig, zlib, cmake, jemalloc }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "lwan"; 5 + version = "0.1"; 6 + name = "${pname}-${version}"; 7 + 8 + src = fetchFromGitHub { 9 + owner = "lpereira"; 10 + repo = pname; 11 + rev = "v${version}"; 12 + sha256 = "1mckryzb06smky0bx2bkqwqzpnq4pb8vlgmmwsvqmwi4mmw9wmi1"; 13 + }; 14 + 15 + nativeBuildInputs = [ cmake pkgconfig ]; 16 + 17 + buildInputs = [ jemalloc zlib ]; 18 + 19 + meta = with stdenv.lib; { 20 + description = "Lightweight high-performance multi-threaded web server"; 21 + longDescription = "A lightweight and speedy web server with a low memory 22 + footprint (~500KiB for 10k idle connections), with minimal system calls and 23 + memory allocation. Lwan contains a hand-crafted HTTP request parser. Files are 24 + served using the most efficient way according to their size: no copies between 25 + kernel and userland for files larger than 16KiB. Smaller files are sent using 26 + vectored I/O of memory-mapped buffers. Header overhead is considered before 27 + compressing small files. Features include: mustache templating engine and IPv6 28 + support. 29 + "; 30 + homepage = "https://lwan.ws/"; 31 + license = licenses.gpl2; 32 + platforms = platforms.linux; 33 + maintainers = with maintainers; [ leenaars ]; 34 + }; 35 + }
+2
pkgs/top-level/all-packages.nix
··· 12018 12019 lighttpd = callPackage ../servers/http/lighttpd { }; 12020 12021 mailman = callPackage ../servers/mail/mailman { }; 12022 12023 mattermost = callPackage ../servers/mattermost { };
··· 12018 12019 lighttpd = callPackage ../servers/http/lighttpd { }; 12020 12021 + lwan = callPackage ../servers/http/lwan { }; 12022 + 12023 mailman = callPackage ../servers/mail/mailman { }; 12024 12025 mattermost = callPackage ../servers/mattermost { };