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.16.0"; 11 12 src = fetchFromGitHub { 13 owner = "yhirose"; 14 repo = "cpp-httplib"; 15 rev = "v${version}"; 16 hash = "sha256-1w7uu2E4YIcGWNq//BZ2wtDKj9/tgmIhkJgadvCKmVg="; 17 }; 18 19 nativeBuildInputs = [ cmake ]; 20 buildInputs = [ openssl ]; 21 22 meta = with lib; { 23 description = "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 platforms = platforms.all; 29 }; 30}