1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-26 12:10:59 +01:00

in the middle of adding nixStoreState ...

This commit is contained in:
Wouter den Breejen 2007-05-18 19:50:58 +00:00
parent 4c63f18dcc
commit 8a7874d77d
11 changed files with 138 additions and 22 deletions

View file

@ -588,6 +588,9 @@ private:
/* The temporary directory. */
Path tmpDir;
/* The state directory. */
Path stateDir;
/* File descriptor for the log file. */
AutoCloseFD fdLogFile;
@ -759,7 +762,7 @@ void DerivationGoal::haveDerivation()
assert(store->isValidPath(drvPath));
/* Get the derivation. */
drv = derivationFromPath(drvPath);
drv = derivationFromPath(drvPath); //wouter look here
for (DerivationOutputs::iterator i = drv.outputs.begin();
i != drv.outputs.end(); ++i)
@ -1370,6 +1373,11 @@ void DerivationGoal::startBuilder()
/* Create a temporary directory where the build will take
place. */
tmpDir = createTempDir();
/* Create the state directory where the component can store it's state files place */
stateDir = createStateDirs(drv.stateOutputDirs, drv.stateOutputs);
//TODO create the startupscript
/* For convenience, set an environment pointing to the top build
directory. */