From a0809c029330540e35ff5a8cd4295b68271e1e19 Mon Sep 17 00:00:00 2001 From: Malte Brandy Date: Sat, 4 Jun 2022 23:45:46 +0200 Subject: [PATCH] haskellPackages.hoogleLocal: allow substitutes again This is a follow up to the discussion in https://github.com/NixOS/nixpkgs/pull/165337 --- pkgs/development/haskell-modules/hoogle.nix | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/pkgs/development/haskell-modules/hoogle.nix b/pkgs/development/haskell-modules/hoogle.nix index 8518a5391de7..4c8bf8c2d282 100644 --- a/pkgs/development/haskell-modules/hoogle.nix +++ b/pkgs/development/haskell-modules/hoogle.nix @@ -49,9 +49,12 @@ buildPackages.stdenv.mkDerivation { # compiling databases takes less time than copying the results # between machines. preferLocalBuild = true; - # Plus, you need a complete database for each possible combination - # of dependencies, caching them does not make sense. - allowSubstitutes = false; + + # we still allow substitutes because a database is relatively small and if it + # is already built downloading is probably faster. The substitution will only + # trigger for users who have already cached the database on a substituter and + # thus probably intend to substitute it. + allowSubstitutes = true; inherit docPackages;