repo.or.cz
/
NixPkgs.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
btrbk: add mainProgram (#356350)
[NixPkgs.git]
/
pkgs
/
by-name
/
li
/
listmonk
/
frontend.nix
blob
1584526d4b2322d84e2f7c519ed8d547a0b5c34c
1
{ stdenv
2
, fetchYarnDeps
3
, yarnConfigHook
4
, yarnBuildHook
5
, nodejs
6
, meta
7
, version
8
, src
9
}:
10
11
stdenv.mkDerivation (finalAttrs: {
12
pname = "listmonk-frontend";
13
inherit version;
14
15
src = "${src}/frontend";
16
17
offlineCache = fetchYarnDeps {
18
yarnLock = "${src}/frontend/yarn.lock";
19
hash = "sha256-TdrglyRtb2Q8SFtoiCoDj/zBV2+7DwzIm/Fzlt0ZvSo=";
20
};
21
22
nativeBuildInputs = [
23
yarnConfigHook
24
yarnBuildHook
25
nodejs
26
];
27
28
installPhase = ''
29
mkdir $out
30
cp -R dist/* $out
31
'';
32
33
inherit meta;
34
})