1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-28 05:21:16 +02:00

Add TreeInfo::computeStorePath()

This commit is contained in:
Eelco Dolstra 2020-02-02 12:29:53 +01:00
parent 7bcc9f2aaf
commit fad9faf354
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
4 changed files with 16 additions and 3 deletions

View file

@ -111,8 +111,7 @@ nlohmann::json LockedInput::toJson() const
StorePath LockedInput::computeStorePath(Store & store) const
{
assert(info.narHash);
return store.makeFixedOutputPath(true, info.narHash, "source");
return info.computeStorePath(store);
}
LockedInputs::LockedInputs(const nlohmann::json & json)

View file

@ -11,6 +11,8 @@ struct StorePath;
namespace nix::flake {
using namespace fetchers;
typedef std::vector<FlakeId> InputPath;
struct LockedInput;