From 549c3706a5d63e10d908b43da8479331a844018f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 24 Nov 2017 18:08:50 +0100 Subject: [PATCH] nix path-info: Show URL of NARs in binary caches --- src/libstore/store-api.cc | 2 ++ 1 file changed, 2 insertions(+) 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)