haskellPackages.hoogleLocal: allow substitutes again

This is a follow up to the discussion in https://github.com/NixOS/nixpkgs/pull/165337
This commit is contained in:
Malte Brandy 2022-06-04 23:45:46 +02:00 committed by sternenseemann
parent 04fc3a1135
commit a0809c0293

View File

@ -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;