* Cache nix-pull calls in nixos-install.
svn path=/nixos/trunk/; revision=34241
This commit is contained in:
parent
22fc2bdb24
commit
d0786fd3e7
@ -38,6 +38,8 @@ fi
|
|||||||
|
|
||||||
# Do a nix-pull to speed up building.
|
# Do a nix-pull to speed up building.
|
||||||
if test -n "@nixosURL@" -a ${NIXOS_PULL:-1} != 0; then
|
if test -n "@nixosURL@" -a ${NIXOS_PULL:-1} != 0; then
|
||||||
|
mkdir -p /nix/var/nix/channel-cache -m 0755
|
||||||
|
NIX_DOWNLOAD_CACHE=/nix/var/nix/channel-cache \
|
||||||
@nix@/bin/nix-pull @nixosURL@/MANIFEST || true
|
@nix@/bin/nix-pull @nixosURL@/MANIFEST || true
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user