Unverified Commit 3cdaa019 authored by Nikolay Korotkiy's avatar Nikolay Korotkiy Committed by GitHub
Browse files

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

parents 60315979 28ec52d7
Loading
Loading
Loading
Loading
+4762 −1490

File changed.

Preview size limit exceeded, changes collapsed.

+16 −5
Original line number Diff line number Diff line
@@ -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;