diff --git a/pkgs/development/libraries/ngtcp2/default.nix b/pkgs/development/libraries/ngtcp2/default.nix index 0ced051b0c65..47f72eb4dac8 100644 --- a/pkgs/development/libraries/ngtcp2/default.nix +++ b/pkgs/development/libraries/ngtcp2/default.nix @@ -12,14 +12,15 @@ curlHTTP3, }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "ngtcp2"; version = "1.12.0"; src = fetchFromGitHub { owner = "ngtcp2"; - repo = pname; - rev = "v${version}"; + repo = "ngtcp2"; + # must match version usage in meta.changelog + tag = "v${finalAttrs.version}"; hash = "sha256-mfgWtyYhAJB8kvQVNCuSHx4Nz1Th5STMlorCB2xO7OQ="; fetchSubmodules = true; }; @@ -48,11 +49,12 @@ stdenv.mkDerivation rec { inherit curlHTTP3; }; - meta = with lib; { + meta = { 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"; - license = licenses.mit; - platforms = platforms.unix; - maintainers = with maintainers; [ izorkin ]; + changelog = "https://github.com/ngtcp2/ngtcp2/releases/tag/v${finalAttrs.version}"; + description = "Implementation of the QUIC protocol (RFC9000)"; + license = lib.licenses.mit; + platforms = lib.platforms.unix; + maintainers = with lib.maintainers; [ izorkin ]; }; -} +})