diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-12-15 22:09:32 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-12-20 14:24:14 +0100 |
commit | 845fc3f605be6dd1140ab81eefb969da1cc5346b (patch) | |
tree | 3807bfc4906819f2efb787e141358ef2a84c4dca /src/nix/app.cc | |
parent | 17373debe99396449534391aa26fe5f5eef74ce9 (diff) |
Merge toDerivations() into toDerivedPaths()
toDerivedPaths() now returns DerivedPathWithInfo, which is DerivedPath
with some attributes needed by 'nix profile' etc.
Preparation for #7417.
Diffstat (limited to 'src/nix/app.cc')
-rw-r--r-- | src/nix/app.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nix/app.cc b/src/nix/app.cc index 5658f2a52..a8d7e115b 100644 --- a/src/nix/app.cc +++ b/src/nix/app.cc @@ -19,12 +19,11 @@ struct InstallableDerivedPath : Installable { } - std::string what() const override { return derivedPath.to_string(*store); } - DerivedPaths toDerivedPaths() override + DerivedPathsWithInfo toDerivedPaths() override { - return {derivedPath}; + return {{derivedPath}}; } std::optional<StorePath> getStorePath() override |