* Cache nix-pull calls in nixos-install.

svn path=/nixos/trunk/; revision=34241
This commit is contained in:
Eelco Dolstra 2012-05-25 13:32:30 +00:00
parent 22fc2bdb24
commit d0786fd3e7

@ -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