ngtcp2: add meta.changelog, modernize (#400623)

authored by Felix Bargfeldt and committed by GitHub 96a57ba7 566ce223

+11 -9
+11 -9
pkgs/development/libraries/ngtcp2/default.nix
··· 12 12 curlHTTP3, 13 13 }: 14 14 15 - stdenv.mkDerivation rec { 15 + stdenv.mkDerivation (finalAttrs: { 16 16 pname = "ngtcp2"; 17 17 version = "1.12.0"; 18 18 19 19 src = fetchFromGitHub { 20 20 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}"; 23 24 hash = "sha256-mfgWtyYhAJB8kvQVNCuSHx4Nz1Th5STMlorCB2xO7OQ="; 24 25 fetchSubmodules = true; 25 26 }; ··· 48 49 inherit curlHTTP3; 49 50 }; 50 51 51 - meta = with lib; { 52 + meta = { 52 53 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 ]; 57 59 }; 58 - } 60 + })