about summary refs log tree commit diff
path: root/nixpkgs/pkgs/by-name/li/libnghttp2_asio/package.nix
blob: 7d286b2ffcb5e44affc967d95df0dd34e0842fb6 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
{ lib
, stdenv
, fetchFromGitHub
, cmake
, nghttp2
, openssl
, boost
}:

stdenv.mkDerivation rec {
  pname = "libnghttp2_asio";
  version = "unstable-2022-08-11";

  outputs = [ "out" "dev" "doc" ];

  src = fetchFromGitHub {
    owner = "nghttp2";
    repo = "nghttp2-asio";
    rev = "e877868abe06a83ed0a6ac6e245c07f6f20866b5";
    sha256 = "sha256-XQXRHLz0kvaIQq1nbqkJnETHR51FXMB1P9F/hQeZh6A=";
  };

  nativeBuildInputs = [
    cmake
  ];

  buildInputs = [
    boost
    nghttp2
    openssl
  ];

  meta = with lib; {
    description = "High level HTTP/2 C++ library";
    longDescription = ''
      libnghttp2_asio is C++ library built on top of libnghttp2
      and provides high level abstraction API to build HTTP/2
      applications. It depends on the Boost::ASIO library and
      OpenSSL. libnghttp2_asio provides both client and server APIs.
    '';
    homepage = "https://github.com/nghttp2/nghttp2-asio";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ izorkin ];
  };
}