diff options
author | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-07-17 10:28:33 -0400 |
---|---|---|
committer | Carlo Nucera <carlo.nucera@protonmail.com> | 2020-07-17 10:28:33 -0400 |
commit | 5cb840541b2dc52c187424fd46ed2f46dcb6314f (patch) | |
tree | fb63982acf9876bc691e67a9fe548101206775b2 /src/libexpr/primops.cc | |
parent | 745a03cef5977e3474dcf8ef43cb721a6a7cac8e (diff) | |
parent | bf9f040112c33213910faef40077122f1932d462 (diff) |
Merge branch 'multi-output-hashDerivationModulo' of github.com:Ericson2314/nix into misc-ca
Diffstat (limited to 'src/libexpr/primops.cc')
-rw-r--r-- | src/libexpr/primops.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc index ebe31724c..d12d571ad 100644 --- a/src/libexpr/primops.cc +++ b/src/libexpr/primops.cc @@ -800,7 +800,9 @@ static void prim_derivationStrict(EvalState & state, const Pos & pos, Value * * }); } - Hash h = hashDerivationModulo(*state.store, Derivation(drv), true); + // Regular, non-CA derivation should always return a single hash and not + // hash per output. + Hash h = std::get<0>(hashDerivationModulo(*state.store, Derivation(drv), true)); for (auto & i : outputs) { auto outPath = state.store->makeOutputPath(i, h, drvName); |