aboutsummaryrefslogtreecommitdiff
path: root/src/libexpr
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2023-04-01 16:40:32 -0400
committerJohn Ericson <John.Ericson@Obsidian.Systems>2023-04-01 16:40:32 -0400
commiteeecfacb439b06b89977b55c879d74da85387a36 (patch)
treed83d5d4227c485a06cf219889cc928b0bd3832a1 /src/libexpr
parent1f8e1edba9520f35bb69961859b77e072f35e8c1 (diff)
parentc51d554c933b5fe294da41fcdf5afe0d4f33f586 (diff)
Merge branch 'path-info' into ca-drv-exotic
Diffstat (limited to 'src/libexpr')
-rw-r--r--src/libexpr/primops.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index 829119238..b6476e006 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -1292,8 +1292,11 @@ drvName, Bindings * attrs, Value & v)
auto method = ingestionMethod.value_or(FileIngestionMethod::Flat);
DerivationOutput::CAFixed dof {
- // FIXME non-trivial fixed refs set
- .ca = contentAddressFromMethodHashAndRefs(method, std::move(h), {}),
+ .ca = ContentAddressWithReferences::fromParts(
+ std::move(method),
+ std::move(h),
+ // FIXME non-trivial fixed refs set
+ {}),
};
drv.env["out"] = state.store->printStorePath(dof.path(*state.store, drvName, "out"));
@@ -1315,13 +1318,13 @@ drvName, Bindings * attrs, Value & v)
if (isImpure)
drv.outputs.insert_or_assign(i,
DerivationOutput::Impure {
- .method = method,
+ .method = method.raw,
.hashType = ht,
});
else
drv.outputs.insert_or_assign(i,
DerivationOutput::CAFloating {
- .method = method,
+ .method = method.raw,
.hashType = ht,
});
}