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:
parent
7466297341
commit
28f4c3d8ee
1 changed files with 7 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue