1 { stdenv, fetchYarnDeps, fixup_yarn_lock, callPackage, nodejs-16_x }:
3 common = callPackage ./common.nix { };
6 pname = "tandoor-recipes-frontend";
7 inherit (common) version;
9 src = "${common.src}/vue";
11 yarnOfflineCache = fetchYarnDeps {
12 yarnLock = "${common.src}/vue/yarn.lock";
13 sha256 = common.yarnSha256;
18 # Use Node JS 16 because of @achrinza/node-ipc@9.2.2
26 export HOME=$(mktemp -d)
27 yarn config --offline set yarn-offline-mirror "$yarnOfflineCache"
28 fixup_yarn_lock yarn.lock
30 yarn install --frozen-lockfile --offline --no-progress --non-interactive
31 patchShebangs node_modules/
39 yarn --offline run build
47 cp -R ../cookbook/static/vue/ $out
48 cp webpack-stats.json $out
49 echo "${common.version}" > "$out/version"
54 meta = common.meta // {
55 description = "Tandoor Recipes frontend";