diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-04-05 10:05:21 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-04-05 10:05:21 -0400 |
commit | 179582872de60863fcabcf471f98930a25fd6df3 (patch) | |
tree | 6349bd6ca80d01938414f5e9ed42a603140a1d9d /src/nix/develop.cc | |
parent | 9b805d36ac70545fc4c0d863e21e0c2e5f2518a1 (diff) |
Make `DerivedPathWithHints` a newtype
This allows us to namespace its constructors under it.
Diffstat (limited to 'src/nix/develop.cc')
-rw-r--r-- | src/nix/develop.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/nix/develop.cc b/src/nix/develop.cc index cae6ded40..7cc7b85be 100644 --- a/src/nix/develop.cc +++ b/src/nix/develop.cc @@ -277,14 +277,14 @@ struct Common : InstallableCommand, MixProfile } }; std::visit(overloaded { - [&](const DerivedPathOpaque & bo) { + [&](const DerivedPathWithHints::Opaque & bo) { doRedirect(bo.path); }, - [&](const DerivedPathWithHintsBuilt & bfd) { + [&](const DerivedPathWithHints::Built & bfd) { for (auto & [outputName, path] : bfd.outputs) if (path) doRedirect(*path); }, - }, buildable); + }, buildable.raw()); } return rewriteStrings(script, rewrites); |