From 77c13cdf566ffedc70d8860571afae8a6d43b552 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 19 Nov 2013 00:03:11 +0100 Subject: Add a toJSON primop --- src/libexpr/eval.hh | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/libexpr/eval.hh') diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh index af408cd0bd76..45ab423c18a1 100644 --- a/src/libexpr/eval.hh +++ b/src/libexpr/eval.hh @@ -181,6 +181,8 @@ public: string coerceToString(Value & v, PathSet & context, bool coerceMore = false, bool copyToStore = true); + string copyPathToStore(PathSet & context, const Path & path); + /* Path coercion. Converts strings, paths and derivations to a path. The result is guaranteed to be a canonicalised, absolute path. Nothing is copied to the store. */ -- cgit 1.4.1