aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/primops/flakeref.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2019-06-03 09:21:31 +0200
committerGitHub <noreply@github.com>2019-06-03 09:21:31 +0200
commit95bdfaa8bdacba5cbf04c875ac41114edac4367e (patch)
treeccf8e9bbd2dbee876fc538951929abb827fd3dd1 /src/libexpr/primops/flakeref.hh
parent134942f56a7adf96e3bcd3e0e06683e4841097f5 (diff)
parent15f241775ace2bbd807e7222e822bd5bf0f42ff7 (diff)
Merge pull request #2907 from NixOS/subdir
Subdirectory improvements
Diffstat (limited to 'src/libexpr/primops/flakeref.hh')
-rw-r--r--src/libexpr/primops/flakeref.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libexpr/primops/flakeref.hh b/src/libexpr/primops/flakeref.hh
index 299094634..52bb82ddb 100644
--- a/src/libexpr/primops/flakeref.hh
+++ b/src/libexpr/primops/flakeref.hh
@@ -180,4 +180,9 @@ struct FlakeRef
std::ostream & operator << (std::ostream & str, const FlakeRef & flakeRef);
+MakeError(BadFlakeRef, Error);
+
+std::optional<FlakeRef> parseFlakeRef(
+ const std::string & uri, bool allowRelative = false);
+
}