LnL7 / nix-darwin

nix modules for darwin
MIT License
2.79k stars 430 forks source link

hash mismatch after flake update #1034

Open ydewit opened 1 month ago

ydewit commented 1 month ago

I had a working nix-darwing flake config.

Then I ran:

nix flake update
darwin-rebuild switch --flake .

And I then started getting:

error: hash mismatch in fixed-output derivation '/nix/store/yaaf6yx9d3z5ym19j2pf9zkrizhirvqr-source.drv':
         specified: sha256-idQB8Wqw7lvU192y7+UgFvcwlmY71/mu9jJ4hRc4ud4=
            got:    sha256-ZURUEd7TokBIVVejRoBiXMQ1XwUEgMnzOhQiV+Tdpk0=

Not sure how to get out of this rut.

NPM8 commented 1 month ago

I also have very similar issue, for last 1 week.

Enzime commented 1 month ago

What version of Nix are you using? Also could you run the build with --show-trace?

pperanich commented 1 month ago

This occurs for me after a nix flake update as well.

pperanich commented 1 month ago

Originates from https://github.com/NixOS/nixpkgs/pull/332824

jakemassoth commented 1 month ago

perhaps something upstream got fixed as I just update my flake this morning and now I am not having this issue on macos anymore.