Files
lix/lix/libstore/make-content-addressed.hh
T
eldritch horrors b60314f32e libstore: asyncify makeContentAddressed
Change-Id: I3cdad058a9f015983db5306271c56a9996aaef28
2025-02-08 13:50:33 +00:00

25 lines
607 B
C++

#pragma once
///@file
#include "lix/libstore/store-api.hh"
namespace nix {
/** Rewrite a closure of store paths to be completely content addressed.
*/
kj::Promise<Result<std::map<StorePath, StorePath>>> makeContentAddressed(
Store & srcStore,
Store & dstStore,
const StorePathSet & rootPaths);
/** Rewrite a closure of a store path to be completely content addressed.
*
* This is a convenience function for the case where you only have one root path.
*/
kj::Promise<Result<StorePath>> makeContentAddressed(
Store & srcStore,
Store & dstStore,
const StorePath & rootPath);
}