aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/flake/flakeref.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/flake/flakeref.hh')
-rw-r--r--src/libexpr/flake/flakeref.hh10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/libexpr/flake/flakeref.hh b/src/libexpr/flake/flakeref.hh
index 72cbb2908..f4eb825a6 100644
--- a/src/libexpr/flake/flakeref.hh
+++ b/src/libexpr/flake/flakeref.hh
@@ -14,17 +14,15 @@ typedef std::string FlakeId;
struct FlakeRef
{
- std::shared_ptr<const fetchers::Input> input;
+ fetchers::Input input;
Path subdir;
bool operator==(const FlakeRef & other) const;
- FlakeRef(const std::shared_ptr<const fetchers::Input> & input, const Path & subdir)
- : input(input), subdir(subdir)
- {
- assert(input);
- }
+ FlakeRef(fetchers::Input && input, const Path & subdir)
+ : input(std::move(input)), subdir(subdir)
+ { }
// FIXME: change to operator <<.
std::string to_string() const;