diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-19 15:18:19 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-19 15:26:59 +0000 |
commit | 2f0e395c99f926b9f0a65e37ea644a40ec5dddfa (patch) | |
tree | f9d8d6e0ae6e4b945f296484358d84e889a2ef11 /src/libexpr | |
parent | 3fc58a96387f55226ad78a0d8e765a0f041e8da0 (diff) | |
parent | fb39a5e00c03c8fb3b893263e1d2b151c3ba11aa (diff) |
Merge remote-tracking branch 'me/no-stringly-typed-derivation-output' into validPathInfo-ca-proper-datatype
Diffstat (limited to 'src/libexpr')
-rw-r--r-- | src/libexpr/primops.cc | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index a8fe994bd..3830d8107 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -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 = FileSystemHash { ingestionMethod, std::move(h) }, + .hash = FixedOutputHash { + .method = ingestionMethod, + .hash = std::move(h), + }, }); } @@ -792,7 +795,7 @@ static void prim_derivationStrict(EvalState & state, const Pos & pos, Value * * drv.outputs.insert_or_assign(i, DerivationOutput { .path = StorePath::dummy, - .hash = std::optional<FileSystemHash> {}, + .hash = std::optional<FixedOutputHash> {}, }); } @@ -804,7 +807,7 @@ static void prim_derivationStrict(EvalState & state, const Pos & pos, Value * * drv.outputs.insert_or_assign(i, DerivationOutput { .path = std::move(outPath), - .hash = std::optional<FileSystemHash>(), + .hash = std::optional<FixedOutputHash>(), }); } } |