mirror of
https://github.com/NixOS/nix
synced 2025-06-28 05:21:16 +02:00
Add TreeInfo::computeStorePath()
This commit is contained in:
parent
7bcc9f2aaf
commit
fad9faf354
4 changed files with 16 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -11,6 +11,8 @@ struct StorePath;
|
|||
|
||||
namespace nix::flake {
|
||||
|
||||
using namespace fetchers;
|
||||
|
||||
typedef std::vector<FlakeId> InputPath;
|
||||
|
||||
struct LockedInput;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue