1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-30 19:57:59 +02:00

Add Store::dumpPath() method

This allows applying nix-store --verify-path to binary cache stores:

  NIX_REMOTE=https://cache.nixos.org nix-store --verify-path /nix/store/s5c7...
This commit is contained in:
Eelco Dolstra 2016-03-21 17:55:57 +01:00
parent 87295b9844
commit 1c5f73f529
7 changed files with 29 additions and 7 deletions

View file

@ -1,3 +1,4 @@
#include "archive.hh"
#include "fs-accessor.hh"
#include "store-api.hh"
@ -68,4 +69,9 @@ ref<FSAccessor> LocalFSStore::getFSAccessor()
return make_ref<LocalStoreAccessor>(ref<Store>(shared_from_this()));
}
void LocalFSStore::dumpPath(const Path & path, Sink & sink)
{
nix::dumpPath(path, sink);
}
}