1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-30 06:01:00 +01:00

Restore the evaluation cache

This commit is contained in:
Eelco Dolstra 2022-07-22 15:19:30 +02:00
parent c73a7584fb
commit 3d27ce36d0
6 changed files with 41 additions and 17 deletions

View file

@ -560,14 +560,11 @@ ref<eval_cache::EvalCache> openEvalCache(
EvalState & state,
std::shared_ptr<flake::LockedFlake> lockedFlake)
{
auto fingerprint = lockedFlake->getFingerprint();
auto fingerprint = lockedFlake->getFingerprint(state.store);
return make_ref<nix::eval_cache::EvalCache>(
#if 0
evalSettings.useEvalCache && evalSettings.pureEval
? std::optional { std::cref(fingerprint) }
:
#endif
std::nullopt,
? fingerprint
: std::nullopt,
state,
[&state, lockedFlake]()
{