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
1 changed files with 1 additions and 0 deletions

View File

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