aboutsummaryrefslogtreecommitdiff
path: root/src/nix/installables.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/installables.cc')
-rw-r--r--src/nix/installables.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc
index 13a68a797..fc2c34861 100644
--- a/src/nix/installables.cc
+++ b/src/nix/installables.cc
@@ -175,6 +175,14 @@ struct InstallableFlake : InstallableValue
state.forceValue(*v);
return v;
}
+
+ std::optional<std::string> installableToFlakeUri() override
+ {
+ if (std::get_if<FlakeRef::IsPath>(&flakeRef.data))
+ return flakeRef.to_string();
+ else
+ return std::nullopt;
+ }
};
// FIXME: extend