about summary refs log tree commit diff
path: root/src/libutil/archive.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-24T15·52+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2016-02-24T15·52+0100
commit9ccbd55c5b55b5530e61fd20476d9f20fd45e074 (patch)
tree6a54e295af747d97bbd6c96cd43da478da51406c /src/libutil/archive.hh
parent30e9d0151699206579df3f442e8517a2f8458cc2 (diff)
BinaryCacheStore: Implement addToStore()
So now you can do

  $ NIX_REMOTE=file:///tmp/binary-cache nix-instantiate '<nixpkgs>' -A hello

and lots of other operations.
Diffstat (limited to '')
-rw-r--r--src/libutil/archive.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/archive.hh b/src/libutil/archive.hh
index c216e9768f..90117f5ff1 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;
+
+
 }