There are some efforts [1] to make reproducible builds really work, also nix guys have some experience with them, as others have noted. Isolated deterministic environments and stripping binaries/archives (strip-nondeterminism tool) [2] generally do the trick.
As well as supporting work to help independent verification of the "chain of custody". There's 25 of those under that label, if you use the search box.
[1] https://reproducible-builds.org
[2] https://reproducible-builds.org/tools/