c7cb07f092
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
30 lines
713 B
Nix
30 lines
713 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, openssl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "httplib";
|
|
version = "0.15.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yhirose";
|
|
repo = "cpp-httplib";
|
|
rev = "v${version}";
|
|
hash = "sha256-+YAjmsZvBkOk5bsjE07weTNUmevHd1ZXP0bv5QbkZMs=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
buildInputs = [ openssl ];
|
|
|
|
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;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|