Nix 2.36.0
Nix, the purely functional package manager; unstable internal interfaces
Loading...
Searching...
No Matches
make-content-addressed.hh File Reference

Go to the source code of this file.

Functions

std::map< StorePath, StorePath > nix::makeContentAddressed (Store &srcStore, Store &dstStore, const StorePathSet &rootPaths)
StorePath nix::makeContentAddressed (Store &srcStore, Store &dstStore, const StorePath &rootPath)

Function Documentation

◆ makeContentAddressed() [1/2]

StorePath nix::makeContentAddressed ( Store & srcStore,
Store & dstStore,
const StorePath & rootPath )

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.

◆ makeContentAddressed() [2/2]

std::map< StorePath, StorePath > nix::makeContentAddressed ( Store & srcStore,
Store & dstStore,
const StorePathSet & rootPaths )

Rewrite a closure of store paths to be completely content addressed.