From 549c3706a5d63e10d908b43da8479331a844018f Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 24 Nov 2017 18:08:50 +0100 Subject: nix path-info: Show URL of NARs in binary caches --- src/libstore/store-api.cc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libstore/store-api.cc') diff --git a/src/libstore/store-api.cc b/src/libstore/store-api.cc index 8146513a4b6e..77ab87ef728e 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) -- cgit 1.4.1