listmonk: fix frontend build due to OpenSSL 3.0 deprecations

* listmonk: fix frontend build using Webpack due to OpenSSL 3.0 deprecations

See the OpenSSL 3.0 section here https://medium.com/the-node-js-collection/node-js-17-is-here-8dba1e14e382 for explanations.
Adds the missing hooks (pre/postinstall).

* listmonk: fix runHook preInstall

* listmonk: fix runHook postInstall

Co-authored-by: superherointj <5861043+superherointj@users.noreply.github.com>
This commit is contained in:
Ryan Lahfa 2022-09-24 18:01:26 +02:00 committed by GitHub
parent 7466297341
commit 28f4c3d8ee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,11 +18,18 @@ yarn2nix-moretea.mkYarnPackage rec {
yarnLock = ./yarn.lock;
yarnNix = ./yarn.nix;
# For Node.js v17+, this is necessary.
NODE_OPTIONS = "--openssl-legacy-provider";
installPhase = ''
runHook preInstall
cd deps/listmonk-frontend/frontend
npm run build
mv dist $out
runHook postInstall
'';
doDist = false;