From c88ba0d8278614c46d09db94e46979fdc40fb34f Mon Sep 17 00:00:00 2001 From: iris Date: Sun, 16 Aug 2026 15:42:51 +0200 Subject: [PATCH] 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. --- nix/checks.nix | 6 +----- nix/packages/swarm-ui.nix | 3 +-- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/nix/checks.nix b/nix/checks.nix index c5d461f8..e9e01878 100644 --- a/nix/checks.nix +++ b/nix/checks.nix @@ -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 = '' diff --git a/nix/packages/swarm-ui.nix b/nix/packages/swarm-ui.nix index bf9ade44..6d750f43 100644 --- a/nix/packages/swarm-ui.nix +++ b/nix/packages/swarm-ui.nix @@ -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 = ''