From 9ccbd55c5b55b5530e61fd20476d9f20fd45e074 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 24 Feb 2016 16:52:28 +0100 Subject: BinaryCacheStore: Implement addToStore() So now you can do $ NIX_REMOTE=file:///tmp/binary-cache nix-instantiate '' -A hello and lots of other operations. --- src/libutil/archive.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/libutil/archive.hh') diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh index c216e9768fd1..90117f5ff168 100644 --- a/src/libutil/archive.hh +++ b/src/libutil/archive.hh @@ -55,6 +55,8 @@ extern PathFilter defaultPathFilter; void dumpPath(const Path & path, Sink & sink, PathFilter & filter = defaultPathFilter); +void dumpString(const std::string & s, Sink & sink); + struct ParseSink { virtual void createDirectory(const Path & path) { }; @@ -76,4 +78,7 @@ void restorePath(const Path & path, Source & source); extern bool useCaseHack; +extern const std::string narVersionMagic1; + + } -- cgit 1.4.1