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