2022-08-12 05:19:41 +00:00
|
|
|
{ lib
|
2023-04-28 20:39:50 +00:00
|
|
|
, stdenv
|
2022-08-12 05:19:41 +00:00
|
|
|
, fetchFromGitHub
|
2023-04-28 20:39:50 +00:00
|
|
|
, cmake
|
|
|
|
, openssl
|
2022-08-12 05:19:41 +00:00
|
|
|
}:
|
|
|
|
|
2023-04-28 20:39:50 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-08-12 05:19:41 +00:00
|
|
|
pname = "httplib";
|
2023-09-06 21:02:53 +00:00
|
|
|
version = "0.14.0";
|
2022-08-12 05:19:41 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yhirose";
|
|
|
|
repo = "cpp-httplib";
|
|
|
|
rev = "v${version}";
|
2023-09-06 21:02:53 +00:00
|
|
|
hash = "sha256-NtjgK/8XApEs4iSo9DzyK4Cc/FQJRAEwCwJbD24FP34=";
|
2022-08-12 05:19:41 +00:00
|
|
|
};
|
|
|
|
|
2023-04-28 20:39:50 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ openssl ];
|
2022-08-12 05:19:41 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A C++ header-only HTTP/HTTPS server and client library";
|
|
|
|
homepage = "https://github.com/yhirose/cpp-httplib";
|
2022-12-11 03:50:22 +00:00
|
|
|
changelog = "https://github.com/yhirose/cpp-httplib/releases/tag/v${version}";
|
2022-08-12 05:19:41 +00:00
|
|
|
maintainers = with maintainers; [ aidalgol ];
|
|
|
|
license = licenses.mit;
|
2023-08-07 11:10:09 +00:00
|
|
|
platforms = platforms.all;
|
2022-08-12 05:19:41 +00:00
|
|
|
};
|
|
|
|
}
|