about summary refs log tree commit diff
path: root/pkgs/development/libraries/mvfst/default.nix
blob: 0a784fff339aceca8844deb1107d9758cae25524 (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
46
47
48
{ stdenv
, lib
, fetchFromGitHub
, cmake
, fizz
, folly
, gflags
, glog
, libsodium
, zlib
}:

stdenv.mkDerivation rec {
  pname = "mvfst";
  version = "2024.03.11.00";

  src = fetchFromGitHub {
    owner = "facebook";
    repo = "mvfst";
    rev = "v${version}";
    sha256 = "sha256-KjNTDgpiR9EG42Agl2JFJoPo5+8GlS27oPMWpdLq2v8=";
  };

  nativeBuildInputs = [ cmake ];

  cmakeFlags = lib.optionals stdenv.isDarwin [
    "-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation
  ];

  buildInputs = [
    fizz
    folly
    folly.boost
    folly.fmt
    gflags
    glog
    libsodium
    zlib
  ];

  meta = with lib; {
    description = "Implementation of the QUIC transport protocol";
    homepage = "https://github.com/facebook/mvfst";
    license = licenses.mit;
    platforms = platforms.unix;
    maintainers = with maintainers; [ ris ];
  };
}