28f4c3d8ee
* 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>
39 lines
667 B
Nix
39 lines
667 B
Nix
{ yarn2nix-moretea
|
|
, fetchFromGitHub
|
|
, meta
|
|
}:
|
|
|
|
yarn2nix-moretea.mkYarnPackage rec {
|
|
pname = "listmonk-frontend";
|
|
version = "2.2.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "knadh";
|
|
repo = "listmonk";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-dtIM0dkr8y+GbyCqrBlR5VRq6qMiZdmQyFvIoVY1eUg=";
|
|
};
|
|
|
|
packageJSON = ./package.json;
|
|
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;
|
|
|
|
|
|
inherit meta;
|
|
}
|