nixpkgs-overlay/pkgs/ngtcp2/default.nix

43 lines
802 B
Nix

{ autoreconfHook
, lib
, stdenv
, fetchFromGitHub
, gnutls-latest
, pkgconfig
}:
stdenv.mkDerivation rec {
pname = "ngtcp2";
version = "20211031";
src = fetchFromGitHub {
owner = "ngtcp2";
repo = "ngtcp2";
rev = "f91edc489e2ce77603f8e101a24a9c7726265ef7";
sha256 = "0x486vwg5w1yz7jl8vi2nc8dyjv78p03ygfcxgfqwdmiq60iflhy";
};
outputs = [ "out" "dev" ];
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;
};
}