ensure presence of directories
This commit is contained in:
parent
adf0216d98
commit
7b006122ae
1 changed files with 7 additions and 2 deletions
|
@ -171,12 +171,17 @@ int main(int argc, char ** argv) {
|
||||||
|
|
||||||
uname(&_uname);
|
uname(&_uname);
|
||||||
|
|
||||||
cacheDir = (format("%1%/dependency-maps/%2%-%3%-%4%")
|
auto cacheParentDir = (format("%1%/dependency-maps") % settings.nixStateDir).str();
|
||||||
% settings.nixStateDir
|
|
||||||
|
cacheDir = (format("%1%/%2%-%3%-%4%")
|
||||||
|
% cacheParentDir
|
||||||
% _uname.machine
|
% _uname.machine
|
||||||
% _uname.sysname
|
% _uname.sysname
|
||||||
% _uname.release).str();
|
% _uname.release).str();
|
||||||
|
|
||||||
|
mkdir(cacheParentDir.c_str(), 0755);
|
||||||
|
mkdir(cacheDir.c_str(), 0755);
|
||||||
|
|
||||||
auto store = openStore();
|
auto store = openStore();
|
||||||
|
|
||||||
auto drv = store->derivationFromPath(Path(argv[1]));
|
auto drv = store->derivationFromPath(Path(argv[1]));
|
||||||
|
|
Loading…
Reference in a new issue