9 buildNpmPackage' = buildNpmPackage.override {
10 stdenv = if stdenv.hostPlatform.isDarwin then overrideSDK stdenv "11.0" else stdenv;
13 buildNpmPackage' rec {
17 src = fetchFromGitHub {
20 rev = "refs/tags/v${version}";
21 hash = "sha256-R5DO4xN3PkwGAIfyMkohs9SvFiLjWf1ddOwkY6wbsjA=";
24 # NOTE: Generating lock-file
25 # arch = [ x64 arm64 ]
26 # platform = [ darwin linux]
27 # npm install --package-lock-only --arch=<arch> --platform=<os>
28 # darwin seems to generate a cross platform compatible lockfile
30 cp ${./package-lock.json} package-lock.json
33 npmDepsHash = "sha256-Nrcld0ONfjdSh/ItdbDMp6dXVFKoj83aaoGXDgoNE60=";
39 description = "Find and fix problems in your JavaScript code";
40 homepage = "https://eslint.org";
41 license = lib.licenses.mit;
42 maintainers = [ lib.maintainers.onny ];