about summary refs log tree commit diff
path: root/src/normalise.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/normalise.hh')
-rw-r--r--src/normalise.hh8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/normalise.hh b/src/normalise.hh
index e8e72f5bc857..bbe846404cc0 100644
--- a/src/normalise.hh
+++ b/src/normalise.hh
@@ -18,6 +18,14 @@ Path normaliseNixExpr(const Path & nePath, PathSet pending = PathSet());
    its output paths through substitutes... kaboom!). */
 void realiseClosure(const Path & nePath, PathSet pending = PathSet());
 
+/* Ensure that a path exists, possibly by instantiating it by
+   realising a substitute. */
+void ensurePath(const Path & path, PathSet pending = PathSet());
+
+/* Read a Nix expression, after ensuring its existence through
+   ensurePath(). */
+NixExpr exprFromPath(const Path & path, PathSet pending = PathSet());
+
 /* Get the list of root (output) paths of the given Nix expression. */
 PathSet nixExprRoots(const Path & nePath);