about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authormaralorn <malte.brandy@maralorn.de>2022-03-22 23:15:17 +0100
committerGitHub <noreply@github.com>2022-03-22 23:15:17 +0100
commit1c771276512249d8b704ec579a7161790c90ad22 (patch)
treefe45acd80e6deb10b94b428618c09499b0203f2f /pkgs/development/haskell-modules
parent34718d64326dd5ba96ea47fc0a5c9782cb2d256c (diff)
parent7f08e0ca6d029a0b54ba124f01da8731af68a74e (diff)
downloadnixlib-1c771276512249d8b704ec579a7161790c90ad22.tar
nixlib-1c771276512249d8b704ec579a7161790c90ad22.tar.gz
nixlib-1c771276512249d8b704ec579a7161790c90ad22.tar.bz2
nixlib-1c771276512249d8b704ec579a7161790c90ad22.tar.lz
nixlib-1c771276512249d8b704ec579a7161790c90ad22.tar.xz
nixlib-1c771276512249d8b704ec579a7161790c90ad22.tar.zst
nixlib-1c771276512249d8b704ec579a7161790c90ad22.zip
Merge pull request #165337 from Profpatsch/hoogle-local-really-local
haskellPackages.hoogleLocal: build database locally
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/hoogle.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/hoogle.nix b/pkgs/development/haskell-modules/hoogle.nix
index 0b3f71995c99..8518a5391de7 100644
--- a/pkgs/development/haskell-modules/hoogle.nix
+++ b/pkgs/development/haskell-modules/hoogle.nix
@@ -46,6 +46,13 @@ buildPackages.stdenv.mkDerivation {
   name = "hoogle-with-packages";
   buildInputs = [ghc hoogle];
 
+  # 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;
+
   inherit docPackages;
 
   passAsFile = ["buildCommand"];