haskellPackages.hoogleLocal: build database locally

This commit is contained in:
Profpatsch 2022-03-22 22:36:59 +01:00
parent b4c2ffaffa
commit 7f08e0ca6d

View file

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