2022-12-17 10:02:37 +00:00
|
|
|
{ lib
|
2023-04-29 16:46:19 +00:00
|
|
|
, stdenv
|
2022-12-17 10:02:37 +00:00
|
|
|
, fetchFromGitHub
|
2023-04-29 16:46:19 +00:00
|
|
|
, cmake
|
|
|
|
, openssl
|
2022-12-17 10:02:37 +00:00
|
|
|
}:
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2022-12-17 10:02:37 +00:00
|
|
|
pname = "httplib";
|
2023-08-10 07:59:29 +00:00
|
|
|
version = "0.13.3";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yhirose";
|
|
|
|
repo = "cpp-httplib";
|
|
|
|
rev = "v${version}";
|
2023-08-10 07:59:29 +00:00
|
|
|
hash = "sha256-ESaH0+n7ycpOKM+Mnv/UgT16UEx86eFMQDHB3RVmgBw=";
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
|
2023-04-29 16:46:19 +00:00
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
buildInputs = [ openssl ];
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A C++ header-only HTTP/HTTPS server and client library";
|
|
|
|
homepage = "https://github.com/yhirose/cpp-httplib";
|
|
|
|
changelog = "https://github.com/yhirose/cpp-httplib/releases/tag/v${version}";
|
|
|
|
maintainers = with maintainers; [ aidalgol ];
|
|
|
|
license = licenses.mit;
|
2023-08-10 07:59:29 +00:00
|
|
|
platforms = platforms.all;
|
2022-12-17 10:02:37 +00:00
|
|
|
};
|
|
|
|
}
|