Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> We can even inspect the value of $PATH, here:

> (...)

> Your output is going to be different from mine because of the hashes in the store paths.

Does this mean that a nix install is not reproducible? If the same installation is performed twice, the file names and contents will be different due to some randomness?



The hashes will only be different if you install different versions of the derivation (package). All the inputs of a derivation, so even selected plugins and compile options influence the hash.

That said, if me and you agreed on a specific git commit of the nixpkgs repo and build some packages from that, our hashes would be the same. This knowledge is also used to download packages from the binary cache. You can see the automatic building of the packages on hydra.nixos.org, from there they will be made avaiable on the binary cache.


It is reproducible, but only for the same exact version, and with no overlays at all. If you’re running this with a different channel, or months later, you’ll get drastically different hashes, since the software will be different.


From my understanding it is reproducible, although the hashes might be different they'll still be linked in the same way. Give someone your nix.conf and they will be able to build your machine. You reference things by variable name anyway.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: