send: use nodejs_20 to build package

newer nodejs versions aren't able to build the package
This commit is contained in:
Karun Sandhu
2026-01-02 15:32:52 +01:00
parent eaf3f6b552
commit 4a32f084b2
+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"
'';