aboutsummaryrefslogtreecommitdiff
path: root/src/nix/profile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/nix/profile.cc')
-rw-r--r--src/nix/profile.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/nix/profile.cc b/src/nix/profile.cc
index f39213b8f..59cc745e2 100644
--- a/src/nix/profile.cc
+++ b/src/nix/profile.cc
@@ -128,13 +128,14 @@ struct ProfileManifest
auto narHash = hashString(htSHA256, *sink.s);
- ValidPathInfo info(store->makeFixedOutputPath(true, narHash, "profile", references));
+ ValidPathInfo info(store->makeFixedOutputPath(FileIngestionMethod::Recursive, narHash, "profile", references));
info.references = std::move(references);
info.narHash = narHash;
info.narSize = sink.s->size();
- info.ca = makeFixedOutputCA(true, info.narHash);
+ info.ca = makeFixedOutputCA(FileIngestionMethod::Recursive, info.narHash);
- store->addToStore(info, sink.s);
+ auto source = StringSource { *sink.s };
+ store->addToStore(info, source);
return std::move(info.path);
}