various: pin to nodejs 22 to fix build (#475485)

This commit is contained in:
Aleksana 2025-12-31 16:20:05 +00:00 committed by GitHub
commit 41d9a1f709
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 12 additions and 0 deletions

View file

@ -1,6 +1,7 @@
{
lib,
buildNpmPackage,
nodejs_22,
fetchFromGitHub,
nix-update-script,
esbuild,
@ -43,6 +44,9 @@ buildNpmPackage (finalAttrs: {
npmDepsHash = "sha256-ISHILT/FBy2Y0UWaQkjMm5ZsYacNt3M54IJ8ckYjq3A=";
# https://github.com/NixOS/nixpkgs/issues/474535
nodejs = nodejs_22;
nativeBuildInputs = [ esbuild' ];
env.ESBUILD_BINARY_PATH = lib.getExe esbuild';

View file

@ -5,6 +5,7 @@
buildGoModule,
fetchFromGitHub,
buildNpmPackage,
nodejs_22,
nix-update-script,
npm-lockfile-fix,
fetchNpmDeps,
@ -220,6 +221,9 @@ buildMattermost rec {
--replace-fail 'options: {}' 'options: { disable: true }'
'';
# https://github.com/NixOS/nixpkgs/issues/474535
nodejs = nodejs_22;
npmDepsHash = npmDeps.hash;
makeCacheWritable = true;
forceGitDeps = true;

View file

@ -1,5 +1,6 @@
{
buildNpmPackage,
nodejs_22,
fetchFromGitHub,
lib,
}:
@ -17,6 +18,9 @@ buildNpmPackage (finalAttrs: {
npmDepsHash = "sha256-mpe00J5iRwaH7hJIDP3fDuJSUOKk01COpOOvF1YJMyg=";
# https://github.com/NixOS/nixpkgs/issues/474535
nodejs = nodejs_22;
# don't fetch playwright binary
env.PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD = "1";