DeterminateSystems / zero-to-nix

Zero to Nix is your guide to learning Nix and flakes. Created by Determinate Systems.
https://zero-to-nix.com
Other
855 stars 64 forks source link

Issue with page `src/pages/start/4.nix-build.mdx` #348

Closed tuffnerdstuff closed 1 month ago

tuffnerdstuff commented 2 months ago

When I follow instructions in section Build a package in a local flake and execute nix build, I receive error: hash mismatch in fixed-output derivation. I tried both JavaScript and Go, and for both languages it is the same issue:

JavaScript

error: hash mismatch in fixed-output derivation '/nix/store/sv46ysbv8sw5njj46f2x0yh359gw58c6-zero-to-nix-javascript-npm-deps.drv':
         specified: sha256-8Bj7nPZBAU+SnVTeKeArcjYnfZV4z/4I7fX+l0V+v04=
            got:    sha256-A/q4C8Ox1InaJ/320+pU9uBUv6zqTKlzzOmJUvzBOnI=
error: 1 dependencies of derivation '/nix/store/4kfk57qwjsmvw11nzwag1hnz8cdnaljr-zero-to-nix-javascript.drv' failed to build

Go

error: hash mismatch in fixed-output derivation '/nix/store/59ryjbxwq7nknhd0ss3jsizcw2rbrkjf-zero-to-nix-go-go-modules.drv':
         specified: sha256-pYnN8rxXNNLRegvJySwAyMUPBmnhSiDSHfMQpjB9Qjs=
            got:    sha256-Cy1/QqbO2MyYgqJZKxrt1FZzLSgXbhSK3ceFPUlFujw=
error: 1 dependencies of derivation '/nix/store/k3ah6d9bm4nh7fpd4jikycaw6qlfja7y-zero-to-nix-go.drv' failed to build