1{ lib
2, stdenv
3, fetchFromGitHub
4, cmake
5, openssl
6}:
7
8stdenv.mkDerivation rec {
9 pname = "httplib";
10 version = "0.14.1";
11
12 src = fetchFromGitHub {
13 owner = "yhirose";
14 repo = "cpp-httplib";
15 rev = "v${version}";
16 hash = "sha256-JBs2FvcdAvxysYhzakP0wU/mUCWfKZ8dk5ROWL5sej0=";
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 platforms = platforms.all;
29 };
30}