From 43c4d18c6a4e1a8b129114439718e26c12b49ca8 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 21 Feb 2007 15:45:32 +0000 Subject: * `nix-store --import': import an archive created by `nix-store --export' into the Nix store, and optionally check the cryptographic signatures against /nix/etc/nix/signing-key.pub. (TODO: verify against a set of public keys.) --- src/libstore/store-api.hh | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/libstore/store-api.hh') diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh index 6a1de616ca59..1f2d60f11cb6 100644 --- a/src/libstore/store-api.hh +++ b/src/libstore/store-api.hh @@ -99,6 +99,10 @@ public: virtual void exportPath(const Path & path, bool sign, Sink & sink) = 0; + /* Import a NAR dump created by exportPath() into the Nix + store. */ + virtual Path importPath(bool requireSignature, Source & source) = 0; + /* Ensure that the output paths of the derivation are valid. If they are already valid, this is a no-op. Otherwise, validity can be reached in two ways. First, if the output paths have -- cgit 1.4.1