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:
parent
a37338815d
commit
450c358e20
4 changed files with 74 additions and 13 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue