1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-03 02:01:48 +02:00

* Maintain a database table (`derivers') that maps output paths to the

derivation that produced them.
* `nix-store -qd PATH' prints out the derivation that produced a path.
This commit is contained in:
Eelco Dolstra 2005-02-07 13:40:40 +00:00
parent a37338815d
commit 450c358e20
4 changed files with 74 additions and 13 deletions

View file

@ -1140,7 +1140,8 @@ void DerivationGoal::computeClosure()
{
registerValidPath(txn, i->second.path,
contentHashes[i->second.path],
allReferences[i->second.path]);
allReferences[i->second.path],
drvPath);
}
txn.commit();
@ -1501,7 +1502,7 @@ void SubstitutionGoal::finished()
Transaction txn;
createStoreTransaction(txn);
registerValidPath(txn, storePath, contentHash, references);
registerValidPath(txn, storePath, contentHash, references, "");
txn.commit();
outputLock->setDeletion(true);