ngtcp2: add meta.changelog, modernize

This commit is contained in:
Arne Keller 2025-04-21 22:26:02 +02:00 committed by FliegendeWurst
parent 59391acc7f
commit 8a753704ff

View File

@ -12,14 +12,15 @@
curlHTTP3, curlHTTP3,
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
pname = "ngtcp2"; pname = "ngtcp2";
version = "1.12.0"; version = "1.12.0";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "ngtcp2"; owner = "ngtcp2";
repo = pname; repo = "ngtcp2";
rev = "v${version}"; # must match version usage in meta.changelog
tag = "v${finalAttrs.version}";
hash = "sha256-mfgWtyYhAJB8kvQVNCuSHx4Nz1Th5STMlorCB2xO7OQ="; hash = "sha256-mfgWtyYhAJB8kvQVNCuSHx4Nz1Th5STMlorCB2xO7OQ=";
fetchSubmodules = true; fetchSubmodules = true;
}; };
@ -48,11 +49,12 @@ stdenv.mkDerivation rec {
inherit curlHTTP3; inherit curlHTTP3;
}; };
meta = with lib; { meta = {
homepage = "https://github.com/ngtcp2/ngtcp2"; homepage = "https://github.com/ngtcp2/ngtcp2";
description = "ngtcp2 project is an effort to implement QUIC protocol which is now being discussed in IETF QUICWG for its standardization"; changelog = "https://github.com/ngtcp2/ngtcp2/releases/tag/v${finalAttrs.version}";
license = licenses.mit; description = "Implementation of the QUIC protocol (RFC9000)";
platforms = platforms.unix; license = lib.licenses.mit;
maintainers = with maintainers; [ izorkin ]; platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [ izorkin ];
}; };
} })