aboutsummaryrefslogtreecommitdiff
path: root/src/nix/flake.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/flake.cc')
-rw-r--r--src/nix/flake.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index 93af71ac3..7006ab989 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -40,13 +40,13 @@ void printFlakeInfo(Flake & flake, bool json) {
if (json) {
nlohmann::json j;
j["id"] = flake.id;
- j["location"] = flake.path;
+ j["location"] = flake.sourceInfo.storePath;
j["description"] = flake.description;
std::cout << j.dump(4) << std::endl;
} else {
std::cout << "ID: " << flake.id << "\n";
std::cout << "Description: " << flake.description << "\n";
- std::cout << "Location: " << flake.path << "\n";
+ std::cout << "Location: " << flake.sourceInfo.storePath << "\n";
}
}