From 99e4890e9e6add5e967393334c2efd56c489ab89 Mon Sep 17 00:00:00 2001 From: aszlig Date: Tue, 9 Jul 2013 08:23:25 +0200 Subject: [PATCH] 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 --- pkgs/tools/misc/hetzner-nixops-installer/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/tools/misc/hetzner-nixops-installer/default.nix b/pkgs/tools/misc/hetzner-nixops-installer/default.nix index e1b122c9a86..f671ea8afcb 100644 --- a/pkgs/tools/misc/hetzner-nixops-installer/default.nix +++ b/pkgs/tools/misc/hetzner-nixops-installer/default.nix @@ -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'