45 lines
842 B
Nix
45 lines
842 B
Nix
{ autoreconfHook
|
|
, lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, gnutls-latest
|
|
, pkgconfig
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ngtcp2";
|
|
version = "20210714";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "ngtcp2";
|
|
repo = "ngtcp2";
|
|
rev = "7afbcff4b19b9d94ce49dfb7f9e092f7bef35f63";
|
|
sha256 = "16ir8xrcszjm8822m4grb598nykj21pi31nj9yyqz72pyryl3m4z";
|
|
};
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
patches = [ ./gnutls_header.patch ];
|
|
|
|
configureFlags = [
|
|
"--with-gnutls"
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
autoreconfHook
|
|
pkgconfig
|
|
];
|
|
|
|
buildInputs = [
|
|
gnutls-latest
|
|
];
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|