From 7f08e0ca6d029a0b54ba124f01da8731af68a74e Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Tue, 22 Mar 2022 22:36:59 +0100 Subject: [PATCH] haskellPackages.hoogleLocal: build database locally --- pkgs/development/haskell-modules/hoogle.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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"];