eslint: fix darwin; eslint: 9.9.1 -> 9.10.0 (#340396)
This commit is contained in:
Generated
+3950
-678
File diff suppressed because it is too large
Load Diff
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user