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";
|
||||
src = ../frontend;
|
||||
|
||||
# Same lockfile as `frontend`/`swarm-ui` above — reads the same
|
||||
# `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.
|
||||
# See `nix/packages/frontend.nix`'s comment on the same line.
|
||||
npmDepsHash = builtins.readFile ../frontend/npm-deps-hash;
|
||||
|
||||
buildPhase = ''
|
||||
|
|
|
|||
|
|
@ -34,8 +34,7 @@ buildNpmPackage {
|
|||
version = "0.0.0";
|
||||
src = ../../frontend;
|
||||
|
||||
# See `./frontend.nix`'s comment on the same line — one shared file,
|
||||
# regenerate with `prefetch-npm-deps frontend/package-lock.json`.
|
||||
# See `./frontend.nix`'s comment on the same line.
|
||||
npmDepsHash = builtins.readFile ../../frontend/npm-deps-hash;
|
||||
|
||||
buildPhase = ''
|
||||
|
|
|
|||
Loading…
Reference in a new issue