Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SHA-256 hash mismatch error installing nix for IHP #960

Closed
dimavin1 opened this issue Jul 6, 2021 · 6 comments
Closed

SHA-256 hash mismatch error installing nix for IHP #960

dimavin1 opened this issue Jul 6, 2021 · 6 comments

Comments

@dimavin1
Copy link

dimavin1 commented Jul 6, 2021

I am trying to install IHP on Mac according to https://ihp.digitallyinduced.com/Guide/installation.html

Installation command for nix:
sh <(curl https://abathur-nix-install-tests.cachix.org/serve/yihf8zbs0jwph2rs9qfh80dnilijxdi2/install) --tarball-url-prefix https://abathur-nix-install-tests.cachix.org/serve
fails with the error:
SHA-256 hash mismatch in 'https://abathur-nix-install-tests.cachix.org/serve/jqr52m6w8dwag5932hw67kq0rvbnji01/nix-2.4pre19700101_eab14a6-x86_64-darwin.tar.xz'; expected @binaryTarball_x86_64-darwin@, got eb40f032d84e2fadb1e875ad7a35a075f9c5b47a4737084a87f925292378b57a

@mpscholten
Copy link
Member

Thanks for reporting. Looking into this 👍

@mpscholten
Copy link
Member

Domen (founder of cachix) checked the hash and reported that the hash is okay. So it's likely a network error. Can you try to run the installer again?

@dimavin1
Copy link
Author

dimavin1 commented Jul 6, 2021

I have tried the script again, the same error. It is consistently reproducible on my MacBook Air silicon. Please see the screenshot attached.
Screen Shot 2021-07-06 at 8 31 20 AM

@mpscholten
Copy link
Member

Can you try to install using the following command?

sh <(curl -L https://nixos.org/nix/install) --darwin-use-unencrypted-nix-store-volume --daemon

Nix added support for M1 just very recently.

@dimavin1
Copy link
Author

dimavin1 commented Jul 6, 2021

I have successfully installed nix with this command and one more following https://nixos.org/manual/nix/stable/#sect-macos-installation
After that I installed ihp using nix.

@mpscholten
Copy link
Member

I've updated the docs to fix the bug for future users f9069c5 :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants