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";
|
2024-06-20 14:57:18 +00:00
|
|
|
version = "0.16.0";
|
2022-12-17 10:02:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yhirose";
|
|
|
|
repo = "cpp-httplib";
|
|
|
|
rev = "v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
hash = "sha256-1w7uu2E4YIcGWNq//BZ2wtDKj9/tgmIhkJgadvCKmVg=";
|
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; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "C++ header-only HTTP/HTTPS server and client library";
|
2022-12-17 10:02:37 +00:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|