forked from mirrors/nixpkgs
9bb3fccb5b
continuation of #109595 pkgconfig was aliased in 2018, however, it remained in all-packages.nix due to its wide usage. This cleans up the remaining references to pkgs.pkgsconfig and moves the entry to aliases.nix. python3Packages.pkgconfig remained unchanged because it's the canonical name of the upstream package on pypi.
35 lines
1.2 KiB
Nix
35 lines
1.2 KiB
Nix
{ lib, stdenv, fetchFromGitHub, pkg-config, zlib, cmake, jemalloc }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "lwan";
|
|
version = "0.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "lpereira";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "1znkcsbxw3r10prqvf2x27w1wmm9kd485pj59c364wlvqdhidwqr";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
|
|
buildInputs = [ jemalloc zlib ];
|
|
|
|
meta = with 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 ];
|
|
};
|
|
}
|