diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2023-09-13 04:20:00 +0000 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2023-09-13 04:20:00 +0000 |
commit | 8dac2c361f6060656d1a47e453ad1257a05e680d (patch) | |
tree | 6ec13a072519e5779236c611c09c64781df0dbb6 /pkgs/development/libraries/llhttp | |
parent | 637f72af0632cb221d270889a048cef375feec57 (diff) |
llhttp: use finalAttrs pattern
Diffstat (limited to 'pkgs/development/libraries/llhttp')
-rw-r--r-- | pkgs/development/libraries/llhttp/default.nix | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkgs/development/libraries/llhttp/default.nix b/pkgs/development/libraries/llhttp/default.nix index 11bc220aeeafc..c8b5ca89fa2e4 100644 --- a/pkgs/development/libraries/llhttp/default.nix +++ b/pkgs/development/libraries/llhttp/default.nix @@ -1,13 +1,13 @@ { lib, stdenv, fetchFromGitHub, cmake }: -stdenv.mkDerivation rec { +stdenv.mkDerivation (finalAttrs: { pname = "llhttp"; version = "9.1.0"; src = fetchFromGitHub { owner = "nodejs"; repo = "llhttp"; - rev = "release/v${version}"; + rev = "release/v${finalAttrs.version}"; hash = "sha256-DWRo9mVpmty/Ec+pKqPTZqwOlYJD+SmddwEui7P/694="; }; @@ -22,9 +22,9 @@ stdenv.mkDerivation rec { meta = with lib; { description = "Port of http_parser to llparse"; homepage = "https://llhttp.org/"; - changelog = "https://github.com/nodejs/llhttp/releases/tag/${src.rev}"; + changelog = "https://github.com/nodejs/llhttp/releases/tag/release/v${finalAttrs.version}"; license = licenses.mit; maintainers = [ maintainers.marsam ]; platforms = platforms.all; }; -} +}) |