Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, stdenv 3, fetchFromGitHub 4, cmake 5, openssl 6}: 7 8stdenv.mkDerivation rec { 9 pname = "httplib"; 10 version = "0.12.5"; 11 12 src = fetchFromGitHub { 13 owner = "yhirose"; 14 repo = "cpp-httplib"; 15 rev = "v${version}"; 16 hash = "sha256-9qCquF6DXpgtrfXVd/hc8n1Eu1nOxf/Lm+R13QI0N9Q="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 buildInputs = [ openssl ]; 21 22 meta = with lib; { 23 description = "A C++ header-only HTTP/HTTPS server and client library"; 24 homepage = "https://github.com/yhirose/cpp-httplib"; 25 changelog = "https://github.com/yhirose/cpp-httplib/releases/tag/v${version}"; 26 maintainers = with maintainers; [ aidalgol ]; 27 license = licenses.mit; 28 }; 29}