aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr/names.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/libexpr/names.hh')
-rw-r--r--src/libexpr/names.hh6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libexpr/names.hh b/src/libexpr/names.hh
index ebe113e82..4b3dcddf7 100644
--- a/src/libexpr/names.hh
+++ b/src/libexpr/names.hh
@@ -1,6 +1,9 @@
#pragma once
+#include <memory>
+
#include "types.hh"
+#include "regex.hh"
namespace nix {
@@ -14,6 +17,9 @@ struct DrvName
DrvName();
DrvName(const string & s);
bool matches(DrvName & n);
+
+private:
+ std::shared_ptr<Regex> regex;
};
typedef list<DrvName> DrvNames;