diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2021-04-05 18:47:33 -0400 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2021-04-05 18:47:33 -0400 |
commit | 1b6cf0d5f56e166a1cbbf38142375b7a92fc88f2 (patch) | |
tree | 58c49f0887f613f0a149b639b5d7ded47062b1cf /src/nix/build.cc | |
parent | d5cef6c33a051dfc672cb1e5f4739948b167315b (diff) | |
parent | 4bf3eb27e6e2c0cdac862d188b23342793180999 (diff) |
Merge remote-tracking branch 'upstream/master' into path-info
Diffstat (limited to 'src/nix/build.cc')
-rw-r--r-- | src/nix/build.cc | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/nix/build.cc b/src/nix/build.cc index 724ce9d79..03159b6cc 100644 --- a/src/nix/build.cc +++ b/src/nix/build.cc @@ -61,12 +61,12 @@ struct CmdBuild : InstallablesCommand, MixDryRun, MixJSON, MixProfile for (const auto & [_i, buildable] : enumerate(buildables)) { auto i = _i; std::visit(overloaded { - [&](BuildableOpaque bo) { + [&](DerivedPathWithHints::Opaque bo) { std::string symlink = outLink; if (i) symlink += fmt("-%d", i); store2->addPermRoot(bo.path, absPath(symlink)); }, - [&](BuildableFromDrv bfd) { + [&](DerivedPathWithHints::Built bfd) { auto builtOutputs = store->queryDerivationOutputMap(bfd.drvPath); for (auto & output : builtOutputs) { std::string symlink = outLink; @@ -75,12 +75,12 @@ struct CmdBuild : InstallablesCommand, MixDryRun, MixJSON, MixProfile store2->addPermRoot(output.second, absPath(symlink)); } }, - }, buildable); + }, buildable.raw()); } updateProfile(buildables); - if (json) logger->cout("%s", buildablesToJSON(buildables, store).dump()); + if (json) logger->cout("%s", derivedPathsWithHintsToJSON(buildables, store).dump()); } }; |