mirror of
https://github.com/NixOS/nix
synced 2025-06-27 16:51:15 +02:00
Use designated initializers for DerivationOutputHash
This commit is contained in:
parent
237d88c97e
commit
145d88cb2a
4 changed files with 10 additions and 9 deletions
|
@ -776,7 +776,10 @@ static void prim_derivationStrict(EvalState & state, const Pos & pos, Value * *
|
|||
if (!jsonObject) drv.env["out"] = state.store->printStorePath(outPath);
|
||||
drv.outputs.insert_or_assign("out", DerivationOutput {
|
||||
.path = std::move(outPath),
|
||||
.hash = DerivationOutputHash { ingestionMethod, std::move(h) },
|
||||
.hash = DerivationOutputHash {
|
||||
.method = ingestionMethod,
|
||||
.hash = std::move(h),
|
||||
},
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue