nixpkgs-overlay/pkgs/ngtcp2/default.nix

43 lines
802 B
Nix

{ autoreconfHook
, lib
, stdenv
, fetchFromGitHub
, gnutls-latest
, pkgconfig
}:
stdenv.mkDerivation rec {
pname = "ngtcp2";
version = "20210817";
src = fetchFromGitHub {
owner = "ngtcp2";
repo = "ngtcp2";
rev = "5f87977119436c9f3e510af7fd1a6f47dcde04dc";
sha256 = "1nsqfqbl31w67hk8brbidys1si2fnlm2y4kscyhcykxll9hqw88p";
};
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;
};
}