aboutsummaryrefslogtreecommitdiff
path: root/src/libstore/make-content-addressed.hh
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-07-09 23:41:22 -0400
committerGitHub <noreply@github.com>2023-07-09 23:41:22 -0400
commit028b26a77f111b8334d1ed4251a39df93b446400 (patch)
tree578757d44faeec08bc7d0a7eded4c435f18cc6b8 /src/libstore/make-content-addressed.hh
parent8d871e18225d39a4c256b5416cc275137b8769b9 (diff)
parent9fc82de49388a58240234d10893673566432f7ab (diff)
Merge pull request #8370 from hercules-ci/fetchClosure-input-addressed
`fetchClosure`: input addressed and pure
Diffstat (limited to 'src/libstore/make-content-addressed.hh')
-rw-r--r--src/libstore/make-content-addressed.hh13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/libstore/make-content-addressed.hh b/src/libstore/make-content-addressed.hh
index 2ce6ec7bc..60bb2b477 100644
--- a/src/libstore/make-content-addressed.hh
+++ b/src/libstore/make-content-addressed.hh
@@ -5,9 +5,20 @@
namespace nix {
+/** Rewrite a closure of store paths to be completely content addressed.
+ */
std::map<StorePath, StorePath> makeContentAddressed(
Store & srcStore,
Store & dstStore,
- const StorePathSet & storePaths);
+ 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.
+ */
+StorePath makeContentAddressed(
+ Store & srcStore,
+ Store & dstStore,
+ const StorePath & rootPath);
}