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.
https://reproducible-builds.org/docs/source-date-epoch/
(although Nix sets it as a default)