logoalt Hacker News

crvdgctoday at 6:39 AM2 repliesview on HN

Nix also needs the build output to be deterministic to calculate the hash. It also has the problems of timestamps etc. The build environment tries to be hermetic by setting the time to be epoch among other things.


Replies

lloekitoday at 7:24 AM

SOURCE_DATE_EPOCH is not a Nix thing

https://reproducible-builds.org/docs/source-date-epoch/

(although Nix sets it as a default)

stabblestoday at 8:21 AM

Nix hashes the build inputs, for which deterministic builds are not required, only desirable.