Download nixpkgs
only if necessary
This commit is contained in:
parent
185ceb4455
commit
74b3960a82
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