From eadd95083bb78ec7d9c78367ecdd52b2ebf09751 Mon Sep 17 00:00:00 2001 From: Sefa Eyeoglu Date: Thu, 1 Jan 2026 17:05:20 +0100 Subject: [PATCH] audiobookshelf: use Node.js 22 to resolve build failure Node.js 24 causes the following error duing a clean-install: Missing: fsevents@ from lock file Perhaps upstream needs to switch to Node.js 24 and regenerate their lockfile. Until then, we can use Node.js 22. Signed-off-by: Sefa Eyeoglu --- pkgs/by-name/au/audiobookshelf/package.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/au/audiobookshelf/package.nix b/pkgs/by-name/au/audiobookshelf/package.nix index d8a3370426b0..e86b27abbfa3 100644 --- a/pkgs/by-name/au/audiobookshelf/package.nix +++ b/pkgs/by-name/au/audiobookshelf/package.nix @@ -4,7 +4,7 @@ fetchFromGitHub, runCommand, buildNpmPackage, - nodejs, + nodejs_22, ffmpeg-full, nunicode, util-linux, @@ -32,6 +32,8 @@ let pname = "audiobookshelf-client"; inherit (source) version; + nodejs = nodejs_22; + src = runCommand "cp-source" { } '' cp -r ${src}/client $out ''; @@ -59,6 +61,7 @@ buildNpmPackage { inherit src; inherit (source) npmDepsHash version; + nodejs = nodejs_22; buildInputs = [ util-linux ]; nativeBuildInputs = [ python3 ]; @@ -73,7 +76,7 @@ buildNpmPackage { mkdir $out/bin echo '${wrapper}' > $out/bin/audiobookshelf - echo " exec ${nodejs}/bin/node $out/opt/index.js" >> $out/bin/audiobookshelf + echo " exec ${nodejs_22}/bin/node $out/opt/index.js" >> $out/bin/audiobookshelf chmod +x $out/bin/audiobookshelf '';