aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/flake/flakeref.hh
diff options
context:
space:
mode:
authorpennae <82953136+pennae@users.noreply.github.com>2022-05-25 11:55:13 +0000
committerGitHub <noreply@github.com>2022-05-25 11:55:13 +0000
commitb092afe77d514ddbab02e20f8adf0acc58fa4aaf (patch)
tree13e9942f85a507525047d246ebd12ffaa3c813ac /src/libexpr/flake/flakeref.hh
parentd6d6bbd9ef1eed6443165866cd7bd27faa9586a1 (diff)
parent09e55010f9c7d0e60d7c97d1881cc696df3644ae (diff)
Merge branch 'master' into lto
Diffstat (limited to 'src/libexpr/flake/flakeref.hh')
-rw-r--r--src/libexpr/flake/flakeref.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libexpr/flake/flakeref.hh b/src/libexpr/flake/flakeref.hh
index 1fddfd9a0..a9182f4bf 100644
--- a/src/libexpr/flake/flakeref.hh
+++ b/src/libexpr/flake/flakeref.hh
@@ -3,6 +3,7 @@
#include "types.hh"
#include "hash.hh"
#include "fetchers.hh"
+#include "path-with-outputs.hh"
#include <variant>
@@ -79,4 +80,11 @@ std::pair<FlakeRef, std::string> parseFlakeRefWithFragment(
std::optional<std::pair<FlakeRef, std::string>> maybeParseFlakeRefWithFragment(
const std::string & url, const std::optional<Path> & baseDir = {});
+std::tuple<FlakeRef, std::string, OutputsSpec> parseFlakeRefWithFragmentAndOutputsSpec(
+ const std::string & url,
+ const std::optional<Path> & baseDir = {},
+ bool allowMissing = false,
+ bool isFlake = true);
+
+
}