aboutsummaryrefslogtreecommitdiff
path: root/src/nix
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-04-16 15:40:58 +0200
committerEelco Dolstra <edolstra@gmail.com>2019-04-16 15:43:55 +0200
commit3d0e81051fca850fb7b46d6299a94566b8c1ab62 (patch)
tree87c89c1882875cfbabdad36fbaa97257deee8bdb /src/nix
parent8c4e759efd779e80d135516fdce2cf884a2e06f5 (diff)
Fix lock file generation
Before: "requires": { "nixpkgs": { "uri": "nixpkgs" } }, After: "requires": { "nixpkgs": { "uri": "github:edolstra/nixpkgs/f10e8a02eb7fa2b4a070f30cf87f4efcc7f3186d" } },
Diffstat (limited to 'src/nix')
-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";
}
}