aboutsummaryrefslogtreecommitdiff
path: root/src/nix-env/nix-env.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2021-04-05 18:47:33 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2021-04-05 18:47:33 -0400
commit1b6cf0d5f56e166a1cbbf38142375b7a92fc88f2 (patch)
tree58c49f0887f613f0a149b639b5d7ded47062b1cf /src/nix-env/nix-env.cc
parentd5cef6c33a051dfc672cb1e5f4739948b167315b (diff)
parent4bf3eb27e6e2c0cdac862d188b23342793180999 (diff)
Merge remote-tracking branch 'upstream/master' into path-info
Diffstat (limited to 'src/nix-env/nix-env.cc')
-rw-r--r--src/nix-env/nix-env.cc12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/nix-env/nix-env.cc b/src/nix-env/nix-env.cc
index af1c69b87..e04954d45 100644
--- a/src/nix-env/nix-env.cc
+++ b/src/nix-env/nix-env.cc
@@ -419,13 +419,13 @@ static void queryInstSources(EvalState & state,
static void printMissing(EvalState & state, DrvInfos & elems)
{
- std::vector<BuildableReq> targets;
+ std::vector<DerivedPath> targets;
for (auto & i : elems) {
Path drvPath = i.queryDrvPath();
if (drvPath != "")
- targets.push_back(BuildableReqFromDrv{state.store->parseStorePath(drvPath)});
+ targets.push_back(DerivedPath::Built{state.store->parseStorePath(drvPath)});
else
- targets.push_back(BuildableOpaque{state.store->parseStorePath(i.queryOutPath())});
+ targets.push_back(DerivedPath::Opaque{state.store->parseStorePath(i.queryOutPath())});
}
printMissing(state.store, targets);
@@ -694,12 +694,12 @@ static void opSet(Globals & globals, Strings opFlags, Strings opArgs)
if (globals.forceName != "")
drv.setName(globals.forceName);
- std::vector<BuildableReq> paths {
+ std::vector<DerivedPath> paths {
(drv.queryDrvPath() != "")
- ? (BuildableReq) (BuildableReqFromDrv {
+ ? (DerivedPath) (DerivedPath::Built {
globals.state->store->parseStorePath(drv.queryDrvPath())
})
- : (BuildableReq) (BuildableOpaque {
+ : (DerivedPath) (DerivedPath::Opaque {
globals.state->store->parseStorePath(drv.queryOutPath())
}),
};