Download nixpkgs
only if necessary
This commit is contained in:
parent
3127e534fd
commit
2784070e9d
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 "$nixPkgsDir" ]
|
||||||
if [ ! -d "$nixPkgsCache" ]
|
if [ ! -d "$nixPkgsCache" ]
|
||||||
downloadNixPkgs
|
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