blob: 81e5afa8fd96cef89c7e35c744eb9cde1a7e5c1f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
{ 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;
}
|