send: use nodejs_20 to build package
newer nodejs versions aren't able to build the package
This commit is contained in:
@@ -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"
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user