aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/flakeref.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/primops/flakeref.hh')
-rw-r--r--src/libexpr/primops/flakeref.hh7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/libexpr/primops/flakeref.hh b/src/libexpr/primops/flakeref.hh
index fb365e101..832d7dd03 100644
--- a/src/libexpr/primops/flakeref.hh
+++ b/src/libexpr/primops/flakeref.hh
@@ -122,9 +122,14 @@ struct FlakeRef
std::optional<Hash> rev;
};
+ struct IsPath
+ {
+ Path path;
+ };
+
// Git, Tarball
- std::variant<IsFlakeId, IsGitHub, IsGit> data;
+ std::variant<IsFlakeId, IsGitHub, IsGit, IsPath> data;
// Parse a flake URI.
FlakeRef(const std::string & uri);