Disable eval cache with --impure

Fixes

  $ nix build nixpkgs#zoom-us
  error: Package ‘zoom-us-5.0.399860.0429’ in /nix/store/m79v7h75b69fkk8d2qcwm555l3wq6fmv-source/pkgs/applications/networking/instant-messengers/zoom-us/default.nix:126 has an unfree license (‘unfree’), refusing to evaluate.

  $ nix build nixpkgs#zoom-us --impure
  error: cached failure of attribute 'legacyPackages.x86_64-linux.zoom-us.drvPath'
This commit is contained in:
Eelco Dolstra 2020-06-04 14:53:51 +02:00
parent 959295cf4b
commit d746ef4a81

View file

@ -383,7 +383,7 @@ ref<eval_cache::EvalCache> openEvalCache(
bool useEvalCache) bool useEvalCache)
{ {
return ref(std::make_shared<nix::eval_cache::EvalCache>( return ref(std::make_shared<nix::eval_cache::EvalCache>(
useEvalCache, useEvalCache && evalSettings.pureEval,
lockedFlake->getFingerprint(), lockedFlake->getFingerprint(),
state, state,
[&state, lockedFlake]() [&state, lockedFlake]()