1{
2 lib,
3 cmake,
4 fetchFromGitHub,
5 openssl,
6 stdenv,
7}:
8
9stdenv.mkDerivation (finalAttrs: {
10 pname = "httplib";
11 version = "0.19.0";
12
13 src = fetchFromGitHub {
14 owner = "yhirose";
15 repo = "cpp-httplib";
16 rev = "v${finalAttrs.version}";
17 hash = "sha256-OLwD7mpwqG7BUugUca+CJpPMaabJzUMC0zYzJK9PBCg=";
18 };
19
20 nativeBuildInputs = [ cmake ];
21
22 buildInputs = [ openssl ];
23
24 strictDeps = true;
25
26 meta = {
27 homepage = "https://github.com/yhirose/cpp-httplib";
28 description = "C++ header-only HTTP/HTTPS server and client library";
29 changelog = "https://github.com/yhirose/cpp-httplib/releases/tag/${finalAttrs.src.rev}";
30 license = lib.licenses.mit;
31 maintainers = with lib.maintainers; [ ];
32 platforms = lib.platforms.all;
33 };
34})