mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
Prevent .chroot from being GC'ed when using LocalStore::buildDerivation()
Fixes #616.
This commit is contained in:
parent
eadb86f447
commit
e12cf82782
1 changed files with 4 additions and 0 deletions
|
@ -911,6 +911,10 @@ DerivationGoal::DerivationGoal(const Path & drvPath, const BasicDerivation & drv
|
||||||
state = &DerivationGoal::haveDerivation;
|
state = &DerivationGoal::haveDerivation;
|
||||||
name = (format("building of %1%") % showPaths(outputPaths(drv))).str();
|
name = (format("building of %1%") % showPaths(outputPaths(drv))).str();
|
||||||
trace("created");
|
trace("created");
|
||||||
|
|
||||||
|
/* Prevent the .chroot directory from being
|
||||||
|
garbage-collected. (See isActiveTempFile() in gc.cc.) */
|
||||||
|
worker.store.addTempRoot(drvPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue