2021-01-16 17:03:17 +01:00
|
|
|
{ autoreconfHook
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, gnutls
|
|
|
|
, pkgconfig
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ngtcp2";
|
2021-01-17 13:38:52 +01:00
|
|
|
version = "20210117";
|
2021-01-16 17:03:17 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "ngtcp2";
|
|
|
|
repo = "ngtcp2";
|
2021-01-17 13:38:52 +01:00
|
|
|
rev = "9c41c641a76670a7a4157f93376ccd3a1ebf1b87";
|
|
|
|
sha256 = "12v9br6szchqr5g91bwi5nzpzvn9gddqcmh62lhpshzn064na40x";
|
2021-01-16 17:03:17 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
|
2021-03-15 19:47:50 +01:00
|
|
|
patches = [ ./gnutls_header.patch ];
|
|
|
|
|
2021-01-17 13:38:52 +01:00
|
|
|
configureFlags = [
|
|
|
|
"--with-gnutls"
|
|
|
|
];
|
|
|
|
|
2021-01-16 17:03:17 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook
|
|
|
|
pkgconfig
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gnutls
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "ngtcp2 project is an effort to implement IETF QUIC protocol";
|
|
|
|
homepage = https://github.com/ngtcp2/ngtcp2;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ royneary ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|