Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
45 lines
1.0 KiB
Nix
45 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildNpmPackage,
|
|
fetchFromGitHub,
|
|
nix-update-script,
|
|
stdenv,
|
|
}:
|
|
buildNpmPackage rec {
|
|
pname = "eslint";
|
|
version = "9.35.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eslint";
|
|
repo = "eslint";
|
|
tag = "v${version}";
|
|
hash = "sha256-Ml/TeVvNcq6GyNklwn2/uURUDrJsMCNZcLEx6sLKPiI=";
|
|
};
|
|
|
|
# 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-+dgbWi4Z+2BWLwOv3sTQ2YFrONFyBHmxyc3FFLmStb8=";
|
|
npmInstallFlags = [ "--omit=dev" ];
|
|
|
|
dontNpmBuild = true;
|
|
dontNpmPrune = true;
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
extraArgs = [ "--generate-lockfile" ];
|
|
};
|
|
|
|
meta = {
|
|
description = "Find and fix problems in your JavaScript code";
|
|
homepage = "https://eslint.org";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.onny ];
|
|
};
|
|
}
|