From d746ef4a813b3fc8f31a9c58c60b499a62589806 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 4 Jun 2020 14:53:51 +0200 Subject: [PATCH] Disable eval cache with --impure MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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' --- src/nix/installables.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nix/installables.cc b/src/nix/installables.cc index 86d3bfd20..f471319be 100644 --- a/src/nix/installables.cc +++ b/src/nix/installables.cc @@ -383,7 +383,7 @@ ref openEvalCache( bool useEvalCache) { return ref(std::make_shared( - useEvalCache, + useEvalCache && evalSettings.pureEval, lockedFlake->getFingerprint(), state, [&state, lockedFlake]()