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-04-29 16:46:19 +00:00
|
|
|
version = "0.12.2";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yhirose";
|
|
|
|
repo = "cpp-httplib";
|
|
|
|
rev = "v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-mpHw9fzGpYz04rgnfG/qTNrXIf6q+vFfIsjb56kJsLg=";
|
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;
|
|
|
|
};
|
|
|
|
}
|