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