eslint: fix darwin; eslint: 9.9.1 -> 9.10.0 (#340396)

This commit is contained in:
Nikolay Korotkiy
2024-09-09 02:04:44 +04:00
committed by GitHub
2 changed files with 3966 additions and 683 deletions
+3950 -678
View File
File diff suppressed because it is too large Load Diff
+16 -5
View File
@@ -2,24 +2,35 @@
lib,
buildNpmPackage,
fetchFromGitHub,
stdenv,
overrideSDK,
}:
buildNpmPackage rec {
let
buildNpmPackage' = buildNpmPackage.override {
stdenv = if stdenv.isDarwin then overrideSDK stdenv "11.0" else stdenv;
};
in
buildNpmPackage' rec {
pname = "eslint";
version = "9.9.1";
version = "9.10.0";
src = fetchFromGitHub {
owner = "eslint";
repo = "eslint";
rev = "refs/tags/v${version}";
hash = "sha256-n07a50bigglwr3ItZqbyQxu0mPZawTSVunwIe8goJBQ=";
hash = "sha256-R5DO4xN3PkwGAIfyMkohs9SvFiLjWf1ddOwkY6wbsjA=";
};
# NOTE: Generating lock-file
# arch = [ x64 arm64 ]
# platform = [ darwin linux]
# npm install --package-lock-only --arch=<arch> --platform=<os>
# darwin seems to generate a cross platform compatible lockfile
postPatch = ''
cp ${./package-lock.json} package-lock.json
'';
npmDepsHash = "sha256-/E1JUsbPyHzWJ4kuNRg/blYRaAdATYbk+jnJFJyzHLE=";
npmDepsHash = "sha256-Nrcld0ONfjdSh/ItdbDMp6dXVFKoj83aaoGXDgoNE60=";
dontNpmBuild = true;
dontNpmPrune = true;