mirror of
https://github.com/NixOS/nix.git
synced 2025-11-22 02:09:36 +01:00
Make reading and writing derivations store methods
This allows for different representations.
This commit is contained in:
parent
ef8218f2e3
commit
2a194aa29e
3 changed files with 31 additions and 7 deletions
|
|
@ -1163,7 +1163,7 @@ std::optional<StorePath> Store::getBuildDerivationPath(const StorePath & path)
|
|||
// resolved derivation, so we need to get it first
|
||||
auto resolvedDrv = drv.tryResolve(*this);
|
||||
if (resolvedDrv)
|
||||
return writeDerivation(*this, *resolvedDrv, NoRepair, true);
|
||||
return ::nix::writeDerivation(*this, *resolvedDrv, NoRepair, true);
|
||||
}
|
||||
|
||||
return path;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue