nixpkgs-overlay/pkgs/ngtcp2/default.nix

44 lines
829 B
Nix

{ autoreconfHook
, stdenv
, fetchFromGitHub
, gnutls
, pkgconfig
}:
stdenv.mkDerivation rec {
pname = "ngtcp2";
version = "20210319";
src = fetchFromGitHub {
owner = "ngtcp2";
repo = "ngtcp2";
rev = "a4380654e03124ab04a0dd36e8519891fe54f9d5";
sha256 = "0hysrx01mqnpqvh8wnq4y54qidqsbjfjxf6lqz5143pbl88a07jq";
};
outputs = [ "out" "dev" ];
patches = [ ./gnutls_header.patch ];
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;
};
}