nixpkgs-overlay/pkgs/ngtcp2/default.nix

43 lines
788 B
Nix

{ autoreconfHook
, lib
, stdenv
, fetchFromGitHub
, gnutls
, pkgconfig
}:
stdenv.mkDerivation rec {
pname = "ngtcp2";
version = "20220208";
src = fetchFromGitHub {
owner = "ngtcp2";
repo = "ngtcp2";
rev = "1f55feb0359c88106b461d83e962dc940dbe8bdc";
sha256 = "1yq3hx94v5wg7iy273f6mchl74pq1y81g3hggwmhbvfv1lbfbm56";
};
outputs = [ "out" "dev" ];
configureFlags = [
"--with-gnutls"
];
nativeBuildInputs = [
autoreconfHook
pkgconfig
];
buildInputs = [
gnutls
];
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;
};
}