aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/nix/flake.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/flake.cc b/src/nix/flake.cc
index b090ea201..e5aa424b5 100644
--- a/src/nix/flake.cc
+++ b/src/nix/flake.cc
@@ -100,6 +100,8 @@ static nlohmann::json flakeToJson(const Store & store, const Flake & flake)
j["description"] = *flake.description;
j["edition"] = flake.edition;
j["url"] = flake.lockedRef.to_string();
+ j["original"] = attrsToJson(flake.originalRef.toAttrs());
+ j["locked"] = attrsToJson(flake.lockedRef.toAttrs());
if (auto rev = flake.lockedRef.input->getRev())
j["revision"] = rev->to_string(Base16, false);
if (flake.sourceInfo->info.revCount)