nixpkgs/pkgs/by-name/li/listmonk/frontend.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

38 lines
553 B
Nix
Raw Normal View History

{ mkYarnPackage
2023-09-06 16:27:00 +00:00
, fetchYarnDeps
2022-08-05 22:41:24 +00:00
, meta
, version
, src
2022-08-05 22:41:24 +00:00
}:
mkYarnPackage {
2022-08-05 22:41:24 +00:00
pname = "listmonk-frontend";
inherit version;
2022-08-05 22:41:24 +00:00
src = "${src}/frontend";
2022-08-05 22:41:24 +00:00
packageJSON = ./package.json;
2023-09-06 16:27:00 +00:00
offlineCache = fetchYarnDeps {
yarnLock = "${src}/frontend/yarn.lock";
hash = "sha256-TdrglyRtb2Q8SFtoiCoDj/zBV2+7DwzIm/Fzlt0ZvSo=";
2023-09-06 16:27:00 +00:00
};
2022-08-05 22:41:24 +00:00
configurePhase = ''
ln -s $node_modules node_modules
'';
2022-08-05 22:41:24 +00:00
buildPhase = ''
yarn --offline build
'';
installPhase = ''
mkdir $out
cp -R dist/* $out
2022-08-05 22:41:24 +00:00
'';
doDist = false;
inherit meta;
}