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

View file

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