nix path-info: Show URL of NARs in binary caches

This commit is contained in:
Eelco Dolstra 2017-11-24 18:08:50 +01:00
parent 90948a4e3a
commit 549c3706a5
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE

View file

@ -516,6 +516,8 @@ void Store::pathInfoToJSON(JSONPlaceholder & jsonOut, const PathSet & storePaths
std::shared_ptr<const ValidPathInfo>(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)