Installer: Reset the timestamps in the tarball

Otherwise it isn't reproducible.

Fix https://github.com/NixOS/nix/issues/7001
This commit is contained in:
Théophane Hufschmitt 2022-09-05 14:44:01 +02:00
parent df5159e7d3
commit 3fca5f6c69

View file

@ -260,6 +260,7 @@
echo "file binary-dist $fn" >> $out/nix-support/hydra-build-products echo "file binary-dist $fn" >> $out/nix-support/hydra-build-products
tar cvfJ $fn \ tar cvfJ $fn \
--owner=0 --group=0 --mode=u+rw,uga+r \ --owner=0 --group=0 --mode=u+rw,uga+r \
--mtime='1970-01-01' \
--absolute-names \ --absolute-names \
--hard-dereference \ --hard-dereference \
--transform "s,$TMPDIR/install,$dir/install," \ --transform "s,$TMPDIR/install,$dir/install," \