aboutsummaryrefslogtreecommitdiff
path: root/src/nix/app.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-12-15 22:09:32 +0100
committerEelco Dolstra <edolstra@gmail.com>2022-12-20 14:24:14 +0100
commit845fc3f605be6dd1140ab81eefb969da1cc5346b (patch)
tree3807bfc4906819f2efb787e141358ef2a84c4dca /src/nix/app.cc
parent17373debe99396449534391aa26fe5f5eef74ce9 (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.cc5
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