1
1
Fork 0
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:
John Ericson 2025-10-13 15:04:56 -04:00
parent 234f029940
commit 28b73cabcc
3 changed files with 31 additions and 7 deletions

View file

@ -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;