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