4 ms·
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 hermeti
by crvdgc 4mo ago
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.
- stabbles 4mo agoNix hashes the build inputs, for which deterministic builds are not required, only desirable.
- lloeki 4mo agoSOURCE_DATE_EPOCH is not a Nix thing https://reproducible-builds.org/docs/source-date-epoch/ https://reproducible-builds.org/docs/source-date-epoch/ (although Nix sets it as a default)
- mplanchard 4mo agoYes, reading this I was thinking about how many of these problems go away with a nix environment. Certainly not all of them, but it’s a great way to get a reproducible build environment that includes direct specification of system dependencies.