nix: stop restating the npm-deps-hash regenerate command in 3 places
frontend.nix stays the one authoritative explanation; swarm-ui.nix and checks.nix now just point at it instead of each restating the prefetch-npm-deps command in their own words.
This commit is contained in:
parent
2a67cc0e69
commit
c88ba0d827
2 changed files with 2 additions and 7 deletions
|
|
@ -149,11 +149,7 @@ in
|
||||||
version = "0.0.0";
|
version = "0.0.0";
|
||||||
src = ../frontend;
|
src = ../frontend;
|
||||||
|
|
||||||
# Same lockfile as `frontend`/`swarm-ui` above — reads the same
|
# See `nix/packages/frontend.nix`'s comment on the same line.
|
||||||
# `frontend/npm-deps-hash` file both of those do, so this stays in
|
|
||||||
# lockstep automatically. Regenerate that file with
|
|
||||||
# `prefetch-npm-deps frontend/package-lock.json` when the lockfile
|
|
||||||
# changes.
|
|
||||||
npmDepsHash = builtins.readFile ../frontend/npm-deps-hash;
|
npmDepsHash = builtins.readFile ../frontend/npm-deps-hash;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
||||||
|
|
@ -34,8 +34,7 @@ buildNpmPackage {
|
||||||
version = "0.0.0";
|
version = "0.0.0";
|
||||||
src = ../../frontend;
|
src = ../../frontend;
|
||||||
|
|
||||||
# See `./frontend.nix`'s comment on the same line — one shared file,
|
# See `./frontend.nix`'s comment on the same line.
|
||||||
# regenerate with `prefetch-npm-deps frontend/package-lock.json`.
|
|
||||||
npmDepsHash = builtins.readFile ../../frontend/npm-deps-hash;
|
npmDepsHash = builtins.readFile ../../frontend/npm-deps-hash;
|
||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue