mirror of
https://github.com/NixOS/nix.git
synced 2025-11-28 21:21:00 +01:00
Make reading and writing derivations store methods
This allows for different representations.
This commit is contained in:
parent
234f029940
commit
28b73cabcc
3 changed files with 31 additions and 7 deletions
|
|
@ -1170,7 +1170,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