aboutsummaryrefslogtreecommitdiff
path: root/src/nix/app.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-05-11 18:01:41 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-05-17 17:41:16 -0400
commitb9e5ce4a27f4a8bbee1a2eeb6fddbf569cbfdd7a (patch)
tree1e417565c4987a5e6ba3970ad22e069a088f735b /src/nix/app.cc
parente7c1113a37e6a8fd0dc2dde0d070dbef276a0481 (diff)
Upgrade `downstreamPlaceholder` to a type with methods
This gets us ready for dynamic derivation dependencies (part of RFC 92).
Diffstat (limited to 'src/nix/app.cc')
-rw-r--r--src/nix/app.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nix/app.cc b/src/nix/app.cc
index fd4569bb4..e678b54f0 100644
--- a/src/nix/app.cc
+++ b/src/nix/app.cc
@@ -7,6 +7,7 @@
#include "names.hh"
#include "command.hh"
#include "derivations.hh"
+#include "downstream-placeholder.hh"
namespace nix {
@@ -23,7 +24,7 @@ StringPairs resolveRewrites(
if (auto drvDep = std::get_if<BuiltPathBuilt>(&dep.path))
for (auto & [ outputName, outputPath ] : drvDep->outputs)
res.emplace(
- downstreamPlaceholder(store, drvDep->drvPath, outputName),
+ DownstreamPlaceholder::unknownCaOutput(drvDep->drvPath, outputName).render(),
store.printStorePath(outputPath)
);
return res;