hetzner-nixops-installer: Reset helper timestamps.

This should prevent some annoying messages such as:

tar: usr/bin/nix-build: time stamp 2013-07-09 07:45:19 is 0.159248271 s in the f
uture
tar: usr/bin/nix-channel: time stamp 2013-07-09 07:45:19 is 0.159088763 s in the
future
tar: usr/bin/nix-collect-garbage: time stamp 2013-07-09 07:45:19 is 0.15901664 s
in the future
tar: usr/bin/nix-copy-closure: time stamp 2013-07-09 07:45:19 is 0.158948028 s i
n the future
tar: usr/bin/nix-daemon: time stamp 2013-07-09 07:45:19 is 0.158888042 s in the
future

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
aszlig 2013-07-09 08:23:25 +02:00
parent d58a5eb572
commit 99e4890e9e
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -57,6 +57,9 @@ in stdenv.mkDerivation {
full_storepaths="$("${perl}/bin/perl" "${pathsFromGraph}" refs-*)"
stripped_full_storepaths="$(echo "$full_storepaths" | sed 's|/*||')"
# Reset timestamps to those of 'nix-store' to prevent annoying warnings.
find usr -exec touch -h -r "${nix}/bin/nix-store" {} +
( echo "#!${stdenv.shell}"
echo 'tarfile="$(mktemp)"'
echo 'trap "rm -f $tarfile" EXIT'