nixpkgs-overlay/pkgs/ngtcp2/default.nix

42 lines
789 B
Nix

{ autoreconfHook
, stdenv
, fetchFromGitHub
, gnutls
, pkgconfig
}:
stdenv.mkDerivation rec {
pname = "ngtcp2";
version = "20210117";
src = fetchFromGitHub {
owner = "ngtcp2";
repo = "ngtcp2";
rev = "9c41c641a76670a7a4157f93376ccd3a1ebf1b87";
sha256 = "12v9br6szchqr5g91bwi5nzpzvn9gddqcmh62lhpshzn064na40x";
};
outputs = [ "out" "dev" ];
configureFlags = [
"--with-gnutls"
];
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;
};
}