Fix stale npmDepsHash after package-lock metadata changes #8

Closed
opened 2026-09-07 20:13:08 +01:00 by nimmo · 0 comments
Owner

Problem

The Redview commit fcb4a0f25379be559ea2425cc125972cd6edb731 adds license: "EUPL-1.2" to package.json and the root entry in package-lock.json. Although no dependencies changed, this changes the npm dependency fixed-output content hash.

The Nix package still declares the previous hash in nix/package.nix:

npmDepsHash = "sha256-BOt99tG2vskvOOMgc2KUejeYlSOAdNFl35F+0mZLRMQ=";

Building the candidate fails with:

hash mismatch in fixed-output derivation redview-1.0.0-npm-deps.drv
specified: sha256-BOt99tG2vskvOOMgc2KUejeYlSOAdNFl35F+0mZLRMQ=
got:       sha256-6mevLtKOv2IkN+AdEyy42wUCPbiLcY/Af49m9Hc0xPo=

Requested fix

Update nix/package.nix to use the newly calculated hash, then verify the Redview package and Lyra/NixOS configuration build successfully.

This rejected the automated flake update in the downstream nixos-config repository.

## Problem The Redview commit `fcb4a0f25379be559ea2425cc125972cd6edb731` adds `license: "EUPL-1.2"` to `package.json` and the root entry in `package-lock.json`. Although no dependencies changed, this changes the npm dependency fixed-output content hash. The Nix package still declares the previous hash in `nix/package.nix`: ```nix npmDepsHash = "sha256-BOt99tG2vskvOOMgc2KUejeYlSOAdNFl35F+0mZLRMQ="; ``` Building the candidate fails with: ```text hash mismatch in fixed-output derivation redview-1.0.0-npm-deps.drv specified: sha256-BOt99tG2vskvOOMgc2KUejeYlSOAdNFl35F+0mZLRMQ= got: sha256-6mevLtKOv2IkN+AdEyy42wUCPbiLcY/Af49m9Hc0xPo= ``` ## Requested fix Update `nix/package.nix` to use the newly calculated hash, then verify the Redview package and Lyra/NixOS configuration build successfully. This rejected the automated flake update in the downstream `nixos-config` repository.
nimmo closed this issue 2026-09-07 20:23:57 +01:00
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
nimmo/redview#8
No description provided.