eslint: convert to finalAttrs pattern

This commit is contained in:
Michael Daniels
2026-05-10 16:43:32 -04:00
parent 1ba0f98961
commit eb59c2553d
+4 -4
View File
@@ -4,14 +4,14 @@
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage rec {
buildNpmPackage (finalAttrs: {
pname = "eslint";
version = "10.3.0";
src = fetchFromGitHub {
owner = "eslint";
repo = "eslint";
tag = "v${version}";
tag = "v${finalAttrs.version}";
hash = "sha256-b0Gv7soMPTsbMOZLqMe5vMCPwInk9AFusepf2jJH/Ng=";
};
@@ -35,7 +35,7 @@ buildNpmPackage rec {
};
meta = {
changelog = "https://github.com/eslint/eslint/blob/${src.tag}/CHANGELOG.md";
changelog = "https://github.com/eslint/eslint/blob/${finalAttrs.src.rev}/CHANGELOG.md";
description = "Find and fix problems in your JavaScript code";
homepage = "https://eslint.org";
license = lib.licenses.mit;
@@ -44,4 +44,4 @@ buildNpmPackage rec {
onny
];
};
}
})