Handle nix
cache properly
This commit is contained in:
parent
dfd9b06d32
commit
df7d3efae8
1 changed files with 7 additions and 4 deletions
|
@ -15,12 +15,15 @@ begin
|
||||||
|
|
||||||
function installNixPkgs -V config -V nixPkgsDir
|
function installNixPkgs -V config -V nixPkgsDir
|
||||||
source "$config"
|
source "$config"
|
||||||
downloadNixPkgs
|
|
||||||
mkdir -p "$nixPkgsDir"
|
if [ ! -d "$nixPkgsCache" ]
|
||||||
cp -r "$nixPkgsCache"/* "$nixPkgsDir"
|
downloadNixPkgs
|
||||||
|
mkdir -p "$nixPkgsDir"
|
||||||
|
cp -r "$nixPkgsCache"/* "$nixPkgsDir"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function uninstallNixPkgs -V nixPkgsDir
|
function uninstallNixPkgs -V nixPkgsDir
|
||||||
rm -rf "$nixPkgsDir"
|
rm -rf (dirname "$nixPkgsDir")
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue