From d0786fd3e74a9b222076680941b5187ccfd41853 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 25 May 2012 13:32:30 +0000 Subject: [PATCH] * Cache nix-pull calls in nixos-install. svn path=/nixos/trunk/; revision=34241 --- modules/installer/tools/nixos-install.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/installer/tools/nixos-install.sh b/modules/installer/tools/nixos-install.sh index 1b0bfc97f08..258f125db5d 100644 --- a/modules/installer/tools/nixos-install.sh +++ b/modules/installer/tools/nixos-install.sh @@ -38,7 +38,9 @@ fi # Do a nix-pull to speed up building. if test -n "@nixosURL@" -a ${NIXOS_PULL:-1} != 0; then - @nix@/bin/nix-pull @nixosURL@/MANIFEST || true + mkdir -p /nix/var/nix/channel-cache -m 0755 + NIX_DOWNLOAD_CACHE=/nix/var/nix/channel-cache \ + @nix@/bin/nix-pull @nixosURL@/MANIFEST || true fi