Download nixpkgs
only if necessary
This commit is contained in:
parent
a506fad803
commit
c6323ccd61
1 changed files with 5 additions and 2 deletions
|
@ -16,8 +16,11 @@ begin
|
||||||
function installNixPkgs -V config -V nixPkgsDir
|
function installNixPkgs -V config -V nixPkgsDir
|
||||||
source "$config"
|
source "$config"
|
||||||
|
|
||||||
if [ ! -d "$nixPkgsCache" ]
|
if [ ! -d "$nixPkgsDir" ]
|
||||||
downloadNixPkgs
|
if [ ! -d "$nixPkgsCache" ]
|
||||||
|
downloadNixPkgs
|
||||||
|
end
|
||||||
|
|
||||||
sudo mkdir -p "$nixPkgsDir"
|
sudo mkdir -p "$nixPkgsDir"
|
||||||
sudo cp -r "$nixPkgsCache"/* "$nixPkgsDir"
|
sudo cp -r "$nixPkgsCache"/* "$nixPkgsDir"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue