diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2022-01-18 17:28:18 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2022-01-18 17:28:18 +0100 |
commit | 3876238546c82e4cda4f257b9b1e3e6d53d07658 (patch) | |
tree | 80dbcf6b31e322454cf24d4fdc5df6fded4c302f /src/nix/app.cc | |
parent | 5b243a2b4bf88f41c87569773af84671ba83e890 (diff) |
Add Installable::toDrvPaths()
This is needed to get the path of a derivation that might not exist
(e.g. for 'nix store copy-log').
InstallableStorePath::toDerivedPaths() cannot be used for this because
it calls readDerivation(), so it fails if the store doesn't have the
derivation.
Diffstat (limited to 'src/nix/app.cc')
-rw-r--r-- | src/nix/app.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/app.cc b/src/nix/app.cc index 2fcf4752c..e104cc9c1 100644 --- a/src/nix/app.cc +++ b/src/nix/app.cc @@ -19,7 +19,7 @@ struct InstallableDerivedPath : Installable } - std::string what() override { return derivedPath.to_string(*store); } + std::string what() const override { return derivedPath.to_string(*store); } DerivedPaths toDerivedPaths() override { |