diff options
author | Michael Raskin <7c6f434c@mail.ru> | 2018-02-06 21:26:18 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-02-06 21:26:18 +0000 |
commit | fdcbb263ace163939b02f1ac42719cf1362eaab6 (patch) | |
tree | 6cd2e3ea2904deef8417561fb2ee69d8bf09f867 | |
parent | e9dd9967efaeb9044bbcd2dc37c01d848bd048d0 (diff) | |
parent | cefec62a277cdbb737ada4555d38e921e1d2cf4c (diff) | |
download | nixlib-fdcbb263ace163939b02f1ac42719cf1362eaab6.tar nixlib-fdcbb263ace163939b02f1ac42719cf1362eaab6.tar.gz nixlib-fdcbb263ace163939b02f1ac42719cf1362eaab6.tar.bz2 nixlib-fdcbb263ace163939b02f1ac42719cf1362eaab6.tar.lz nixlib-fdcbb263ace163939b02f1ac42719cf1362eaab6.tar.xz nixlib-fdcbb263ace163939b02f1ac42719cf1362eaab6.tar.zst nixlib-fdcbb263ace163939b02f1ac42719cf1362eaab6.zip |
Merge pull request #32579 from leenaars/lwan
lwan: init -> 0.1
-rw-r--r-- | pkgs/servers/http/lwan/default.nix | 35 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 37 insertions, 0 deletions
diff --git a/pkgs/servers/http/lwan/default.nix b/pkgs/servers/http/lwan/default.nix new file mode 100644 index 000000000000..878211ebf024 --- /dev/null +++ b/pkgs/servers/http/lwan/default.nix @@ -0,0 +1,35 @@ +{ stdenv, fetchFromGitHub, pkgconfig, zlib, cmake, jemalloc }: + +stdenv.mkDerivation rec { + pname = "lwan"; + version = "0.1"; + name = "${pname}-${version}"; + + src = fetchFromGitHub { + owner = "lpereira"; + repo = pname; + rev = "v${version}"; + sha256 = "1mckryzb06smky0bx2bkqwqzpnq4pb8vlgmmwsvqmwi4mmw9wmi1"; + }; + + nativeBuildInputs = [ cmake pkgconfig ]; + + buildInputs = [ jemalloc zlib ]; + + meta = with stdenv.lib; { + description = "Lightweight high-performance multi-threaded web server"; + longDescription = "A lightweight and speedy web server with a low memory + footprint (~500KiB for 10k idle connections), with minimal system calls and + memory allocation. Lwan contains a hand-crafted HTTP request parser. Files are + served using the most efficient way according to their size: no copies between + kernel and userland for files larger than 16KiB. Smaller files are sent using + vectored I/O of memory-mapped buffers. Header overhead is considered before + compressing small files. Features include: mustache templating engine and IPv6 + support. + "; + homepage = "https://lwan.ws/"; + license = licenses.gpl2; + platforms = platforms.linux; + maintainers = with maintainers; [ leenaars ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 38f9a9648676..b0f9ccb7d5fd 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12018,6 +12018,8 @@ with pkgs; lighttpd = callPackage ../servers/http/lighttpd { }; + lwan = callPackage ../servers/http/lwan { }; + mailman = callPackage ../servers/mail/mailman { }; mattermost = callPackage ../servers/mattermost { }; |