504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
30 lines
713 B
Nix
30 lines
713 B
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, cmake
|
|
, openssl
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "httplib";
|
|
version = "0.14.3";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "yhirose";
|
|
repo = "cpp-httplib";
|
|
rev = "v${version}";
|
|
hash = "sha256-53EBZTpz0INtjVSmjvg7XOQf0Bs2ADVe2//+nK6xRyE=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|