diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 8146513a4..77ab87ef7 100644 --- a/src/libstore/store-api.cc +++ b/src/libstore/store-api.cc @@ -516,6 +516,8 @@ void Store::pathInfoToJSON(JSONPlaceholder & jsonOut, const PathSet & storePaths std::shared_ptr(info)); if (narInfo) { + if (!narInfo->url.empty()) + jsonPath.attr("url", narInfo->url); if (narInfo->fileHash) jsonPath.attr("downloadHash", narInfo->fileHash.to_string()); if (narInfo->fileSize)