eslint: fix darwin

This commit is contained in:
Austin Horstman 2024-09-07 17:26:44 -05:00
parent 9ea293f7fe
commit 964e93cbf5
No known key found for this signature in database
2 changed files with 3936 additions and 666 deletions

File diff suppressed because it is too large Load Diff

View File

@ -2,9 +2,15 @@
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";
@ -15,11 +21,16 @@ buildNpmPackage rec {
hash = "sha256-n07a50bigglwr3ItZqbyQxu0mPZawTSVunwIe8goJBQ=";
};
# 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-sqQ7YeCMMK/9/XOX6QHZjX+2U+dYHkKiAzsLI0ehpAE=";
dontNpmBuild = true;
dontNpmPrune = true;