diff options
Diffstat (limited to 'src/nix/add-to-store.cc')
-rw-r--r-- | src/nix/add-to-store.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/nix/add-to-store.cc b/src/nix/add-to-store.cc index 7abb82556..48a4722ae 100644 --- a/src/nix/add-to-store.cc +++ b/src/nix/add-to-store.cc @@ -70,7 +70,10 @@ struct CmdAddToStore : MixDryRun, StoreCommand ValidPathInfo info(store->makeFixedOutputPath(ingestionMethod, hash, *namePart)); info.narHash = narHash; info.narSize = sink.s->size(); - info.ca = makeFixedOutputCA(ingestionMethod, hash); + info.ca = std::optional { FixedOutputHash { + .method = ingestionMethod, + .hash = hash, + } }; if (!dryRun) { auto source = StringSource { *sink.s }; |