Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 stdenv, 4 fetchurl, 5 boost, 6}: 7 8stdenv.mkDerivation rec { 9 pname = "mini-httpd"; 10 version = "1.7"; 11 12 src = fetchurl { 13 url = "https://download-mirror.savannah.gnu.org/releases/mini-httpd/${pname}-${version}.tar.gz"; 14 sha256 = "0jggmlaywjfbdljzv5hyiz49plnxh0har2bnc9dq4xmj1pmjgs49"; 15 }; 16 17 buildInputs = [ boost ]; 18 19 enableParallelBuilding = true; 20 21 env.NIX_CFLAGS_COMPILE = toString [ "-std=c++14" ]; 22 23 meta = { 24 homepage = "http://mini-httpd.nongnu.org/"; 25 description = "Minimalistic high-performance web server"; 26 mainProgram = "httpd"; 27 license = lib.licenses.gpl3; 28 platforms = lib.platforms.linux; 29 maintainers = [ lib.maintainers.peti ]; 30 }; 31}