Skip to content

Commit 96a57ba

Browse files
authored
ngtcp2: add meta.changelog, modernize (#400623)
2 parents 566ce22 + 8a75370 commit 96a57ba

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

pkgs/development/libraries/ngtcp2/default.nix

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,15 @@
1212
curlHTTP3,
1313
}:
1414

15-
stdenv.mkDerivation rec {
15+
stdenv.mkDerivation (finalAttrs: {
1616
pname = "ngtcp2";
1717
version = "1.12.0";
1818

1919
src = fetchFromGitHub {
2020
owner = "ngtcp2";
21-
repo = pname;
22-
rev = "v${version}";
21+
repo = "ngtcp2";
22+
# must match version usage in meta.changelog
23+
tag = "v${finalAttrs.version}";
2324
hash = "sha256-mfgWtyYhAJB8kvQVNCuSHx4Nz1Th5STMlorCB2xO7OQ=";
2425
fetchSubmodules = true;
2526
};
@@ -48,11 +49,12 @@ stdenv.mkDerivation rec {
4849
inherit curlHTTP3;
4950
};
5051

51-
meta = with lib; {
52+
meta = {
5253
homepage = "https://github.com/ngtcp2/ngtcp2";
53-
description = "ngtcp2 project is an effort to implement QUIC protocol which is now being discussed in IETF QUICWG for its standardization";
54-
license = licenses.mit;
55-
platforms = platforms.unix;
56-
maintainers = with maintainers; [ izorkin ];
54+
changelog = "https://github.com/ngtcp2/ngtcp2/releases/tag/v${finalAttrs.version}";
55+
description = "Implementation of the QUIC protocol (RFC9000)";
56+
license = lib.licenses.mit;
57+
platforms = lib.platforms.unix;
58+
maintainers = with lib.maintainers; [ izorkin ];
5759
};
58-
}
60+
})

0 commit comments

Comments
 (0)