eslint: add passthru.updateScript

(cherry picked from commit a4ba29133a)
This commit is contained in:
Michael Daniels
2025-07-05 02:32:45 -04:00
parent 3de5fb2f27
commit 462048bc9c

View File

@@ -2,6 +2,7 @@
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
}:
buildNpmPackage rec {
pname = "eslint";
@@ -29,6 +30,10 @@ buildNpmPackage rec {
dontNpmBuild = true;
dontNpmPrune = true;
passthru.updateScript = nix-update-script {
extraArgs = [ "--generate-lockfile" ];
};
meta = {
description = "Find and fix problems in your JavaScript code";
homepage = "https://eslint.org";