DeterminateSystems / zero-to-nix

Zero to Nix is your guide to learning Nix and flakes. Created by Determinate Systems.

Home Page:https://zero-to-nix.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is `github:DeterminateSystems/zero-to-nix#example` not reproducible?

l0b0 opened this issue · comments

https://zero-to-nix.com/start/nix-develop says (my emphasis):

For curl, for example, you should see a strange path like this (the hash part should be different on your machine):

Shouldn't the hash part be identical on every machine?

The hash should be different on each system type (x86_64 Linux vs aarch64 macOS vs etc) because system is a required attribute in every Nix derivation. I typically use fake hashes in documentation to make sure not to confuse readers by ensuring that no one sees the hash that I get on my own machine.