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:
iris 2026-08-16 15:42:51 +02:00 committed by mara
commit c88ba0d827
2 changed files with 2 additions and 7 deletions

View file

@ -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 = ''

View file

@ -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 = ''