aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/nix/make-content-addressed.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/make-content-addressed.cc b/src/nix/make-content-addressed.cc
index f2e4cefbe..f236bebd6 100644
--- a/src/nix/make-content-addressed.cc
+++ b/src/nix/make-content-addressed.cc
@@ -43,7 +43,7 @@ struct CmdMakeContentAddressed : virtual CopyCommand, virtual StorePathsCommand,
assert(i != remappings.end());
jsonRewrites[srcStore->printStorePath(path)] = srcStore->printStorePath(i->second);
}
- std::cout << json::object({"rewrites", jsonRewrites}).dump();
+ std::cout << nlohmann::json{"rewrites", jsonRewrites}.dump();
} else {
for (auto & path : storePaths) {
auto i = remappings.find(path);