summary refs log tree commit diff
diff options
context:
space:
mode:
authorMalte Brandy <malte.brandy@maralorn.de>2022-06-04 23:45:46 +0200
committersternenseemann <sternenseemann@systemli.org>2022-06-05 13:17:43 +0200
commita0809c029330540e35ff5a8cd4295b68271e1e19 (patch)
tree5d1c3226eed59804972c85a87fe53921643bf631
parent04fc3a113564fd935db3ec3c0862cf16a1c4c78d (diff)
downloadnixpkgs-a0809c029330540e35ff5a8cd4295b68271e1e19.tar
nixpkgs-a0809c029330540e35ff5a8cd4295b68271e1e19.tar.gz
nixpkgs-a0809c029330540e35ff5a8cd4295b68271e1e19.tar.bz2
nixpkgs-a0809c029330540e35ff5a8cd4295b68271e1e19.tar.lz
nixpkgs-a0809c029330540e35ff5a8cd4295b68271e1e19.tar.xz
nixpkgs-a0809c029330540e35ff5a8cd4295b68271e1e19.tar.zst
nixpkgs-a0809c029330540e35ff5a8cd4295b68271e1e19.zip
haskellPackages.hoogleLocal: allow substitutes again
This is a follow up to the discussion in https://github.com/NixOS/nixpkgs/pull/165337
-rw-r--r--pkgs/development/haskell-modules/hoogle.nix9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkgs/development/haskell-modules/hoogle.nix b/pkgs/development/haskell-modules/hoogle.nix
index 8518a5391de..4c8bf8c2d28 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;