2024-02-29 20:09:43 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
|
|
|
, fetchFromGitHub
|
|
|
|
, cmake
|
|
|
|
, fizz
|
|
|
|
, folly
|
|
|
|
, gflags
|
|
|
|
, glog
|
|
|
|
, libsodium
|
|
|
|
, zlib
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mvfst";
|
2024-04-21 15:54:59 +00:00
|
|
|
version = "2024.03.11.00";
|
2024-02-29 20:09:43 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "facebook";
|
|
|
|
repo = "mvfst";
|
|
|
|
rev = "v${version}";
|
2024-04-21 15:54:59 +00:00
|
|
|
sha256 = "sha256-KjNTDgpiR9EG42Agl2JFJoPo5+8GlS27oPMWpdLq2v8=";
|
2024-02-29 20:09:43 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
2024-09-26 11:04:55 +00:00
|
|
|
cmakeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
|
2024-02-29 20:09:43 +00:00
|
|
|
"-DCMAKE_OSX_DEPLOYMENT_TARGET=10.14" # For aligned allocation
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
fizz
|
|
|
|
folly
|
|
|
|
folly.boost
|
|
|
|
folly.fmt
|
|
|
|
gflags
|
|
|
|
glog
|
|
|
|
libsodium
|
|
|
|
zlib
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Implementation of the QUIC transport protocol";
|
2024-02-29 20:09:43 +00:00
|
|
|
homepage = "https://github.com/facebook/mvfst";
|
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = with maintainers; [ ris ];
|
|
|
|
};
|
|
|
|
}
|