Skip to content

Hash mismatch when using opencode flake.nix #4498

@Cody-W-Tucker

Description

@Cody-W-Tucker

Description

There's a script that should update the hash, but the node_modules hash doesn't match what's expected.

Is the update script included in the build commands?

OpenCode version

dev

Steps to reproduce

Install like this:

Flake.nix: inputs.opencode.url = "github:sst/opencode";
home-manager: inputs.opencode.packages.${system}.default

Run nixos-rebuild switch

See error:

error: hash mismatch in fixed-output derivation '/nix/store/m38y76z7ghgh0gjhvh2cildvkxzdlpqx-opencode-node_modules-1.0.78.drv':

specified: sha256-Z3GTCHOVaBW79tx2rSkKOCHlZRPiTD6h9pdIDD12kxU=
got: sha256-hscyqeQXQ6QxXZ4Oh/YwMUkbV+loj2qR8/TcmAlK70c=

Screenshot and/or share link

No response

Operating System

Linux (NixOS)

Terminal

Kitty

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingnix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions