Something went wrong. Try again.
lol
Something went wrong. Try again.
prefetch-npm-deps: normalize packuments for deterministic hashes
Fixed-output derivations for npm dependencies fail with hash mismatches when rebuilt on different days. The root cause is that npm registry metadata (packuments) contain volatile fields that change whenever upstream publishes a new version. For example, the TypeScript packument changes daily due to nightly releases, even though the lockfile pins a specific version. The cached packument includes _rev, time, modified, and the full versions list - all of which drift over time. Strip these volatile fields and filter the versions map to only include versions actually referenced in the lockfile. Signed-off-by: Jörg Thalheim <joerg@thalheim.io>
Author
mic92.tngl.sh Date (Jan 4, 2026, 1:57 PM UTC) Commit
Copy SHA
Parent ab89ffc4 ab89ffc4b119c610bdea857a5c245741de8bf581