depot/third_party/nixpkgs/pkgs/development/libraries/httplib/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

29 lines
682 B
Nix

{ lib
, stdenv
, fetchFromGitHub
, cmake
, openssl
}:
stdenv.mkDerivation rec {
pname = "httplib";
version = "0.12.3";
src = fetchFromGitHub {
owner = "yhirose";
repo = "cpp-httplib";
rev = "v${version}";
hash = "sha256-QHsa+Lmw9XTnwfyyY8b5I5PC8DFEIzwPvIdCwJWQz+I=";
};
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;
};
}