send: use nodejs_20 to build package (#476247)

This commit is contained in:
Sizhe Zhao
2026-01-03 15:23:12 +00:00
committed by GitHub
+3 -1
View File
@@ -17,6 +17,8 @@ buildNpmPackage rec {
hash = "sha256-tfntox8Sw3xzlCOJgY/LThThm+mptYY5BquYDjzHonQ=";
};
nodejs = nodejs_20;
npmDepsHash = "sha256-ZVegUECrwkn/DlAwqx5VDmcwEIJV/jAAV99Dq29Tm2w=";
nativeBuildInputs = [
@@ -37,7 +39,7 @@ buildNpmPackage rec {
cp -r dist $out/lib/node_modules/send/
ln -s $out/lib/node_modules/send/dist/version.json $out/lib/node_modules/send/version.json
makeWrapper ${lib.getExe nodejs_20} $out/bin/send \
makeWrapper ${lib.getExe nodejs} $out/bin/send \
--add-flags $out/lib/node_modules/send/server/bin/prod.js \
--set "NODE_ENV" "production"
'';