llhttp: use finalAttrs pattern
This commit is contained in:
@@ -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;
|
||||
};
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user